Commit 268cd43dc68bed6307669d4fcbdea986a293578d
1 parent
860f3901
Exists in
master
and in
18 other branches
Initial celerybeat.service
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +[Unit] | ||
2 | +Description=Celery workers | ||
3 | +PartOf=colab.service | ||
4 | + | ||
5 | +[Service] | ||
6 | +User=colab | ||
7 | +ExecStartPre=/usr/bin/mkdir -p /var/run/colab | ||
8 | +ExecStartPre=/usr/bin/chown -R colab:colab /var/lock/colab | ||
9 | +ExecStart=/usr/lib/colab/bin/colab-admin celery beat --pidfile=/var/lock/colab/celerybeat.pid | ||
10 | +Restart=on-failure | ||
11 | + | ||
12 | +[Install] | ||
13 | +WantedBy=multi-user.target |