diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-06 01:02:09 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-06 01:02:09 +0100 |
commit | b74b6b26326dbbb6f62d8ad6388236f50e882263 (patch) | |
tree | f72235cc213f6ca0d589247e7946bca7878e0b8c /go/etc | |
parent | 7b74930bdc5cce9a84634245de5c29cc7571b42a (diff) | |
parent | 54cb85b9ae82fe89d717fd5ce3de028b12c7c2fd (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'go/etc')
-rw-r--r-- | go/etc/conf.d/go.env | 2 | ||||
-rw-r--r-- | go/etc/systemd/system/go.service | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/go/etc/conf.d/go.env b/go/etc/conf.d/go.env new file mode 100644 index 00000000..365bd0c7 --- /dev/null +++ b/go/etc/conf.d/go.env @@ -0,0 +1,2 @@ +HOSTN=go +PORT=80 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 |