Skip to content
Snippets Groups Projects
Commit e609ff36 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

inform service to automaitcally create /run/smasch/ direcotyr on gunicorn start

parent 89a45335
No related branches found
No related tags found
1 merge request!417Hard restart cause issue with smasch service
Pipeline #53688 passed
smasch (1.1.0~beta.1-1) unstable; urgency=low
* bug fix: hard restart of ubuntu was removing /run/smasch/ folder required
to start application
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 14 Mar 2022 16:00:00 +0200
smasch (1.1.0~beta.0-1) unstable; urgency=low
......
......@@ -6,6 +6,7 @@ After=network.target
PIDFile=/run/smasch/pid
User=smasch
Group=smasch
RuntimeDirectory=smasch
WorkingDirectory=/usr/lib/smasch
ExecStart=/usr/lib/smasch/env/bin/gunicorn -b :8888 --pid /run/smasch/pid smash.wsgi --error-logfile /var/log/smasch/gunicorn.log --log-level DEBUG --capture-output --limit-request-line 0
......
......@@ -17,9 +17,6 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
chown smasch:smasch /etc/smasch/smasch.py
chmod 0600 /etc/smasch/smasch.py
mkdir -p /run/smasch/
chown -R smasch:smasch /run/smasch/
mkdir -p /var/log/smasch
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment