Commit b51b315ccbcef944cfa592fea1363b2320c84927
1 parent
268cd43d
Exists in
master
and in
18 other branches
Finished colab, celeryd and celerybeat services
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com> Signed-off-by: Sérgio Oliveira <seocam@tracy.com.br>
Showing
3 changed files
with
7 additions
and
9 deletions
Show diff stats
misc/lib/systemd/system/celerybeat.service
1 | [Unit] | 1 | [Unit] |
2 | -Description=Celery workers | 2 | +Description=Celery beat |
3 | PartOf=colab.service | 3 | PartOf=colab.service |
4 | 4 | ||
5 | [Service] | 5 | [Service] |
6 | User=colab | 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 | 7 | +ExecStartPre=/usr/bin/install -d -m 0700 -o colab /var/run/colab |
8 | +ExecStart=/usr/lib/colab/bin/colab-admin celery beat --pidfile=/var/run/colab/celerybeat.pid --schedule=/var/lib/colab/celery/celereybeat-schedule | ||
10 | Restart=on-failure | 9 | Restart=on-failure |
11 | 10 | ||
12 | [Install] | 11 | [Install] |
misc/lib/systemd/system/celeryd.service
misc/lib/systemd/system/colab.service
1 | [Unit] | 1 | [Unit] |
2 | Description=Colab | 2 | Description=Colab |
3 | -Before=celeryd.service | ||
4 | -Requires=celeryd.service | 3 | +Before=celeryd.service celerybeat.service |
4 | +Requires=celeryd.service celerybeat.service | ||
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | User=colab | 7 | User=colab |
8 | EnvironmentFile=-/etc/sysconfig/colab | 8 | EnvironmentFile=-/etc/sysconfig/colab |
9 | PermissionsStartOnly=true | 9 | PermissionsStartOnly=true |
10 | -ExecStartPre=/usr/bin/mkdir -p /var/lock/colab | ||
11 | -ExecStartPre=/usr/bin/chown -R colab:colab /var/lock/colab | 10 | +ExecStartPre=/usr/bin/install -d -m 0750 -o colab -g colab /var/lock/colab |
12 | ExecStart=/usr/lib/colab/bin/gunicorn colab.wsgi:application --config=/etc/colab/gunicorn.py | 11 | ExecStart=/usr/lib/colab/bin/gunicorn colab.wsgi:application --config=/etc/colab/gunicorn.py |
13 | Restart=on-failure | 12 | Restart=on-failure |
14 | 13 |