17 lines
484 B
SYSTEMD
17 lines
484 B
SYSTEMD
|
[Unit]
|
||
|
Description=CSC Electronic Office daemon
|
||
|
Documentation=https://git.csclub.uwaterloo.ca/public/pyceo
|
||
|
Requires=network.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=exec
|
||
|
EnvironmentFile=/etc/default/ceod
|
||
|
WorkingDirectory=/var/lib/ceo
|
||
|
ExecStart=/var/lib/ceo/venv/bin/gunicorn $GUNICORN_ARGS 'ceod.api:create_app()'
|
||
|
# TODO: once the mail container is no longer running in LXC, we should add
|
||
|
# some security protections here, like ProtectSystem.
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|