aboutsummaryrefslogtreecommitdiff
path: root/systemd/celery.service
blob: 0e9d72b6e877d2c817d9ab01fff07fa1f70c25d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Celery Service
After=network.target

[Service]
Type=forking
User=ubuntu
Group=ubuntu
EnvironmentFile=/home/ubuntu/thatcomputerscientist/.env
WorkingDirectory=/home/ubuntu/thatcomputerscientist
ExecStart=/home/ubuntu/thatcomputerscientist/venv/bin/celery -A thatcomputerscientist worker --detach
ExecStop=/home/ubuntu/thatcomputerscientist/venv/bin/celery -A thatcomputerscientist control shutdown
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
Restart=always

[Install]
WantedBy=multi-user.target