storagecelery@.service 339 Bytes
Newer Older
Bach Dániel committed
1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit]
Description=storagecelery %I
BindsTo=storage.service

[Service]
User=cloud
Group=cloud

KillSignal=SIGTERM
TimeoutStopSec=600
Restart=always

WorkingDirectory=/home/cloud/storagedriver
14 15

ExecStart=/bin/bash -c "source /etc/profile; workon storagedriver; exec celery -A storagecelery worker --loglevel=info -n $(/bin/hostname -s).%I"