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.
13 lines
306 B
Desktop File
13 lines
306 B
Desktop File
[Unit]
|
|
Description=RLGWebD app daemon
|
|
After=network.target syslog.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment=NODE_PATH=/usr/lib/node_modules
|
|
ExecStart=/usr/bin/node /usr/local/bin/rlgwebd.js
|
|
ExecStop=/usr/bin/socat "EXEC:echo quit" /var/local/rlgwebd/ctl
|
|
KillMode=none
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|