Skip to content
Snippets Groups Projects
Commit 3e8c408b authored by David Schmitz's avatar David Schmitz
Browse files

systemd support: update of systemd/fod-celeryd.service.dist

parent 54d6ef2f
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,16 @@ WorkingDirectory=/srv/flowspy ...@@ -17,11 +17,16 @@ WorkingDirectory=/srv/flowspy
#RuntimeDirectory=yourservice #RuntimeDirectory=yourservice
#RuntimeDirectoryMode=0755 #RuntimeDirectoryMode=0755
ExecStartPre=-/bin/mkdir -p /var/run/fod/ # executed as root:
ExecStartPre=-/bin/chown fod: /var/run/fod/ #PermissionsStartOnly=True
ExecStartPre=-/bin/rm -f -r /var/run/fod/snmppoll.lock ExecStartPre=+-/bin/mkdir -p /var/run/fod/
ExecStartPre=-/bin/rm -f /srv/flowspy/snmp_temp_data.lock ExecStartPre=+-/bin/chown fod: /var/run/fod/
ExecStartPre=+-/bin/rm -f -r /var/run/fod/snmppoll.lock
ExecStartPre=+-/bin/rm -f /srv/flowspy/snmp_temp_data.lock
# executed as user fod:
ExecStartPre=-/srv/flowspy/flowspy/run_celery_preactions ExecStartPre=-/srv/flowspy/flowspy/run_celery_preactions
#ExecStart=/srv/flowspy/pythonenv celery -A flowspy worker -B --concurrency=2 -l debug -f /srv/flowspy/log/celery.log #ExecStart=/srv/flowspy/pythonenv celery -A flowspy worker -B --concurrency=2 -l debug -f /srv/flowspy/log/celery.log
ExecStart=/srv/flowspy/pythonenv celery -A flowspy worker -B --concurrency=2 -l info -f /srv/flowspy/log/celery.log ExecStart=/srv/flowspy/pythonenv celery -A flowspy worker -B --concurrency=2 -l info -f /srv/flowspy/log/celery.log
#PIDFile=/tmp/yourservice.pid #PIDFile=/tmp/yourservice.pid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment