comparison rlgwebd.service @ 192:addc4e3456c4

Begin adding systemd compatibility. The Makefile can be used to build and install rlgwebd. On systems with systemd, the unit file controls starting and stopping the service, and the shell script is not needed. The unit file uses KillMode=none because socat does not actually stop rlgwebd, it only asks it to stop and exits without waiting for a response. Until a better stopping method is introduced, this setting prevents systemd from killing all the rlgwebd processes as soon as socat exits.
author John "Elwin" Edwards
date Fri, 01 Jan 2016 16:11:34 -0500
parents
children 80ca029f0906
comparison
equal deleted inserted replaced
191:9758ca68e7f1 192:addc4e3456c4
1 [Unit]
2 Description=RLGWebD app daemon
3 After=network.target syslog.target
4
5 [Service]
6 Type=simple
7 Environment=NODE_PATH=/usr/lib/node_modules
8 ExecStart=/usr/bin/node /usr/local/bin/rlgwebd.js
9 ExecStop=/usr/bin/socat "EXEC:echo quit" /var/local/rlgwebd/ctl
10 KillMode=none
11
12 [Install]
13 WantedBy=multi-user.target