aboutsummaryrefslogtreecommitdiff
path: root/utils/gocgi@.service
blob: 9f2cf4abc26649be6b7cf56d2ecce68a323364a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=CGI HTTP instance %i
After=network.target

[Service]
Type=simple
EnvironmentFile=/etc/gocgi/%i.conf
ExecStart=/usr/bin/gocgi --path "${GOCGI_BIN}" --dir "${GOCGI_WORKDIR}" --env="${GOCGI_ENV}" --listen "${STATE_DIRECTORY}/%i.sock"

RuntimeDirectory=gocgi
DynamicUser=yes
ProtectSystem=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes

[Install]
WantedBy=multi-user.target