aboutsummaryrefslogtreecommitdiffstats
path: root/conf/systemd.example
blob: 1f8edf13c6924e296a0ca4ac2f45589ac1865969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=FixMyStreet Catalyst Application Server
Documentation=https://fixmystreet.org/
After=network.target

[Service]
Type=forking
User=fms
PIDFile=/var/www/fixmystreet/fixmystreet.pid
ExecStartPre=mkdir /var/www/fixmystreet/logs
ExecStart=/var/www/fixmystreet/fixmystreet/script/server \
            --port 9000 \
            --env deployment \
            --daemonize \
            --pid /var/www/fixmystreet/fixmystreet.pid \
            --access-log /var/www/fixmystreet/logs/fixmystreet.access.log \
            --error-log /var/www/fixmystreet/logs/fixmystreet.error.log
ExecStop=kill -TERM $MAINPID

[Install]
WantedBy=multi-user.target