20 lines
372 B
SYSTEMD
20 lines
372 B
SYSTEMD
|
[Unit]
|
||
|
Description=Drone Continuous Integration platform server
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=drone
|
||
|
Type=simple
|
||
|
EnvironmentFile=/etc/drone/server
|
||
|
ExecStart=/usr/bin/drone-server
|
||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||
|
Restart=on-failure
|
||
|
KillSignal=SIGINT
|
||
|
LimitNOFILE=8192
|
||
|
PrivateDevices=yes
|
||
|
DynamicUser=yes
|
||
|
StateDirectory=drone
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|