summaryrefslogtreecommitdiffstats
path: root/extra/systemd_unit_example
blob: 63b261afa0109b9d53689785d9c00daf017cfcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=adenosine PDS
After=network.target
StartLimitBurst=20
StartLimitInterval=30min

[Service]
Type=simple
User=www-data
Group=www-data
# TODO: under /var/lib/adenosine/ instead?
WorkingDirectory=/srv/adenosine/
EnvironmentFile=/srv/adenosine/config.env
ExecStart=/usr/bin/adenosine-pds serve -v
Restart=always
RestartSec=3sec

[Install]
WantedBy=multi-user.target