Skip to content

Commit

Permalink
systemd support: update of systemd/fod-celeryd.service.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmitz2017 committed Oct 21, 2024
1 parent 54d6ef2 commit 3e8c408
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions systemd/fod-celeryd.service.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ WorkingDirectory=/srv/flowspy
#RuntimeDirectory=yourservice
#RuntimeDirectoryMode=0755

ExecStartPre=-/bin/mkdir -p /var/run/fod/
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 root:
#PermissionsStartOnly=True
ExecStartPre=+-/bin/mkdir -p /var/run/fod/
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

#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
#PIDFile=/tmp/yourservice.pid
Expand Down

0 comments on commit 3e8c408

Please sign in to comment.