summarylogtreecommitdiffstats
path: root/openacs.service
diff options
context:
space:
mode:
Diffstat (limited to 'openacs.service')
-rw-r--r--openacs.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/openacs.service b/openacs.service
new file mode 100644
index 000000000000..f81e1aea545b
--- /dev/null
+++ b/openacs.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=OpenACS/Naviserver
+After=network.target postgresql.service
+Wants=postgresql.service
+
+[Service]
+Type=forking
+PIDFile=/usr/lib/openacs/log/nsd.pid
+Environment="LANG=en_US.UTF-8"
+ExecStartPre=/bin/rm -f /usr/lib/openacs/log/nsd.pid
+
+# standard startup (non-privileged port, like 8000)
+ExecStart=/usr/bin/nsd -u nsadmin -g nsadmin -t /etc/naviserver/config-oacs-5.9.0.tcl
+
+Restart=on-abnormal
+KillMode=process