summarylogtreecommitdiffstats
path: root/funkwhale-beat.service
blob: dc96f936f3fb1f5771bce431822ab72872ebd46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Funkwhale celery beat process
After=redis.service postgresql.service
PartOf=funkwhale.target

[Service]
User=funkwhale
# adapt this depending on the path of your funkwhale installation
WorkingDirectory=/usr/share/webapps/funkwhale/api
EnvironmentFile=/srv/funkwhale/config/env

ExecStart=/usr/share/webapps/funkwhale/virtualenv/bin/celery \
    --workdir=/usr/share/webapps/funkwhale/api \
    --app funkwhale_api.taskapp \
    beat \
    --schedule=/srv/funkwhale/api/celerybeat-schedule \
    --pidfile=/srv/funkwhale/api/celerybeat.pid \
    --loglevel INFO

[Install]
WantedBy=multi-user.target