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

smasch.service does not restart on socket traffic

parent 43505c0f
No related branches found
No related tags found
1 merge request!292Resolve "gunicorn.socket should allow to shutdown service without automatic reload on accesing IPv4 port"
Pipeline #35284 passed
[Unit]
Description=gunicorn daemon for smasch
Requires=smasch.socket
After=network.target
[Service]
......@@ -9,7 +8,7 @@ User=smasch
Group=smasch
WorkingDirectory=/usr/lib/smasch
ExecStart=/usr/lib/smasch/env/bin/gunicorn --pid /run/smasch/pid smash.wsgi --error-logfile /var/log/smasch/gunicorn.log --log-level DEBUG --capture-output --limit-request-line 8192
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 8192
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
......
[Unit]
Description=gunicorn socket for smasch
[Socket]
ListenStream=/run/smasch/socket
ListenStream=0.0.0.0:8888
ListenStream=[::]:9999
[Install]
WantedBy=sockets.target
......@@ -7,5 +7,4 @@ smash/package.json /usr/lib/smasch
../requirements-dev.txt /usr/lib/smasch
debian-files/smasch.py /etc/smasch/
debian-files/smasch.service /lib/systemd/system/
debian-files/smasch.socket /lib/systemd/system/
debian-files/logrotate/smasch /etc/logrotate.d
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