summaryrefslogtreecommitdiff
path: root/parabolaweb.service.in
blob: 80794c447ffb8c9579dbdb4ae940c0fc2e2a37ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Requires=postgresql.service
After=postgresql.service
Description=ParabolaWeb

[Service]
# By using PIDFile, the service isn't "start" until it's forked written to.
# Otherwise, the ExecStartPost might run before the socket exists.
# Well, it still might, but it's less likely.
Type=forking
PIDFile=/run/parabolaweb/fcgi.pid
ExecStart=@sbindir@/parabolaweb-fcgi socket=/run/parabolaweb/fcgi.sock daemonize=true pidfile=/run/parabolaweb/fcgi.pid
ExecStartPost=/usr/bin/chmod 770 /run/parabolaweb/fcgi.sock
ExecStopPost=/usr/bin/rm -f /run/parabolaweb/fcgi.sock

[Install]
WantedBy=multi-user.target