diff options
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/.gitignore | 1 | ||||
-rw-r--r-- | systemd/diller-mqtt.template.service | 13 | ||||
-rw-r--r-- | systemd/diller-web.template.service | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/systemd/.gitignore b/systemd/.gitignore new file mode 100644 index 0000000..0e3ad1b --- /dev/null +++ b/systemd/.gitignore @@ -0,0 +1 @@ +*.service diff --git a/systemd/diller-mqtt.template.service b/systemd/diller-mqtt.template.service new file mode 100644 index 0000000..30bd78f --- /dev/null +++ b/systemd/diller-mqtt.template.service @@ -0,0 +1,13 @@ +[Service] +ExecStart=/usr/bin/nodejs diller-mqtt.js +WorkingDirectory=%WorkingDirectory% +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=diller +User=%User% +Group=%Group% +Environment=NODE_ENV=%NODE_ENV% + +[Install] +WantedBy=multi-user.target diff --git a/systemd/diller-web.template.service b/systemd/diller-web.template.service new file mode 100644 index 0000000..ad48fa5 --- /dev/null +++ b/systemd/diller-web.template.service @@ -0,0 +1,13 @@ +[Service] +ExecStart=/usr/bin/nodejs diller-web.js +WorkingDirectory=%WorkingDirectory% +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=diller +User=%User% +Group=%Group% +Environment=NODE_ENV=%NODE_ENV% HTTP_PORT=1337 + +[Install] +WantedBy=multi-user.target |