blob: 9db687a25dd1d114fbf0a5eeee6331157c259f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[Unit]
Description=Chinachu WebUI Server Service
After=network.target
[Service]
User=chinachu
PermissionsStartOnly=true
ExecStart=/var/lib/chinachu/chinachu service wui execute
ExecStartPost=-/bin/bash -c "echo $MAINPID > /var/run/chinachu-wui.pid"
ExecStop=/bin/kill -QUIT $MAINPID
ExecStopPost=/usr/bin/rm -f -- /var/run/chinachu-wui.pid
[Install]
WantedBy=multi-user.target
|