summaryrefslogtreecommitdiff
path: root/install/jwebmail.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'install/jwebmail.service.in')
-rw-r--r--install/jwebmail.service.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/install/jwebmail.service.in b/install/jwebmail.service.in
new file mode 100644
index 0000000..afd0f17
--- /dev/null
+++ b/install/jwebmail.service.in
@@ -0,0 +1,14 @@
+[Unit]
+Description=JWebmail managed by hypnotoad
+After=network.target
+
+[Service]
+Type=exec
+ExecStart=hypnotoad -f jwebmail
+ExecReload=hypnotoad -f jwebmail
+PIDFile=/run/jwebmail/hypnotoad.pid
+Environment=MOJO_LOG_SHORT=1 MOJO_CONFIG=@DESTDIR@@PREFIX@/@CONFDIR@/jwebmail.toml
+User=jwebmail
+
+[Install]
+WantedBy=multi-user.target