aboutsummaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-10-25 12:09:29 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-10-25 12:22:17 +0100
commit5e634d62d599c60a34f405e26ef0c3037e9a37a3 (patch)
treeb46460fff2593f1eb7d0e8ed86489910a5d55f93 /systemd
parent1b77c103b2fe6532ddf8f0625ebafeec8c1f5304 (diff)
downloaddiller-server-5e634d62d599c60a34f405e26ef0c3037e9a37a3.tar.gz
diller-server-5e634d62d599c60a34f405e26ef0c3037e9a37a3.tar.bz2
diller-server-5e634d62d599c60a34f405e26ef0c3037e9a37a3.tar.xz
diller-server-5e634d62d599c60a34f405e26ef0c3037e9a37a3.zip
o Experimenting with grunt.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/.gitignore1
-rw-r--r--systemd/diller-mqtt.template.service13
-rw-r--r--systemd/diller-web.template.service13
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