summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-03-21 15:26:26 +0100
committerpks <pks@pks.rocks>2021-03-21 15:26:26 +0100
commit43e17adffc0219bba3bb1490935ffb1b5d4c1d96 (patch)
treebda10f5731a20062a045bf1e94dbb92f9fcad318
parent23b13a2d93631edc3cebf7e1afcdd924f0821faa (diff)
systemd service file
-rw-r--r--up-www.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/up-www.service b/up-www.service
new file mode 100644
index 0000000..f7d00c0
--- /dev/null
+++ b/up-www.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=up www service
+After=network.target
+
+[Service]
+User=root
+Environment=GEM_HOME=/usr/local/lib/ruby/2.5.0
+Environment=APP_ENV=production
+ExecStart=/usr/local/src/up/up-www.rb
+Restart=on-failure
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=up-www
+
+[Install]
+WantedBy=multi-user.target