roles/hap-nodejs/templates/hap-nodejs.service.j2
changeset 0 30d8bcb1ebb4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/hap-nodejs/templates/hap-nodejs.service.j2	Fri Jan 19 11:48:25 2018 -0600
@@ -0,0 +1,16 @@
+# {{ansible_managed}}
+
+[Unit]
+Description=HAP-NodeJS
+
+[Service]
+User={{hap_user}}
+Group={{hap_user}}
+Restart=always
+RestartSec={{hap_restart_sec}}
+
+WorkingDirectory={{hap_dest}}
+ExecStart=/usr/bin/node {{hap_dest}}/Core.js
+
+[Install]
+WantedBy=default.target