summaryrefslogtreecommitdiff
path: root/up-www.service
diff options
context:
space:
mode:
Diffstat (limited to 'up-www.service')
-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