aboutsummaryrefslogtreecommitdiffstats
path: root/conf/systemd.example
blob: 7f22b091aaac7443137c5d2aa6905b0aeb5b84f2 (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=/bin/mkdir -p /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