annotate rlgwebd.service @ 209:2667aaad8e08

Move the NODE_PATH location. Modules are now expected to be in /var/local/lib/node_modules. This is intended to make it easier to avoid running npm as root.
author John "Elwin" Edwards
date Tue, 26 Dec 2017 13:23:55 -0500
parents a7cc38a0168d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
192
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
1 [Unit]
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
2 Description=RLGWebD app daemon
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
3 After=network.target syslog.target
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
4
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
5 [Service]
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
6 Type=simple
209
2667aaad8e08 Move the NODE_PATH location.
John "Elwin" Edwards
parents: 200
diff changeset
7 Environment=NODE_PATH=/var/local/lib/node_modules
195
3bdee6371c3f Change various filenames.
John "Elwin" Edwards
parents: 193
diff changeset
8 ExecStart=/usr/local/bin/rlgwebd
3bdee6371c3f Change various filenames.
John "Elwin" Edwards
parents: 193
diff changeset
9 ExecStop=/usr/local/bin/rlgwebd-stop
200
a7cc38a0168d Actually restart RLGWebD if it crashes.
John "Elwin" Edwards
parents: 195
diff changeset
10 Restart=on-failure
192
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
11
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
12 [Install]
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
13 WantedBy=multi-user.target