summarylogtreecommitdiffstats
path: root/chinachu-operator.service
blob: 6be27feb3d4884763c67808fe53f06912a96a2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Chinachu Task Operator Service

[Service]
User=chinachu
PermissionsStartOnly=true

ExecStart=/var/lib/chinachu/chinachu service operator execute
ExecStartPost=-/bin/bash -c "echo $MAINPID > /var/run/chinachu-operator.pid"

ExecStop=/bin/kill -QUIT $MAINPID
ExecStopPost=/usr/bin/rm -f -- /var/run/chinachu-operator.pid

[Install]
WantedBy=multi-user.target