summaryrefslogtreecommitdiffstats
path: root/go/etc/systemd/system
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-01-06 01:00:06 +0100
committertv <tv@nomic.retiolum>2014-01-06 01:00:06 +0100
commit89317ee561297b3626fa86db4951187bf8bccea1 (patch)
treea76770d2d2caa6895c3cd7c6da2b97b9b62e863d /go/etc/systemd/system
parentfbc2cf879ea76a590923fbcd4bf6150be0aad35c (diff)
go: add systemd foo
Diffstat (limited to 'go/etc/systemd/system')
-rw-r--r--go/etc/systemd/system/go.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/go/etc/systemd/system/go.service b/go/etc/systemd/system/go.service
new file mode 100644
index 00000000..c129296c
--- /dev/null
+++ b/go/etc/systemd/system/go.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=go uri shortener
+After=redis.service
+
+[Service]
+EnvironmentFile=/etc/conf.d/go.env
+ExecStart=/usr/bin/node /krebs/go
+KillMode=process
+User=go
+Group=go
+Restart=always
+
+[Install]
+WantedBy=multi-user.target