summaryrefslogtreecommitdiff
path: root/jwebmail.service.tmpl
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-03-13 21:41:07 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-03-13 21:41:07 +0100
commita365c5e671bcd631b21149a09895594b032c5119 (patch)
treea2adbd5d171affc8ce2edcd600fc192fbf6ffe6a /jwebmail.service.tmpl
parent8ee2d7149baa58ea225cb40e0f95030ee21f1081 (diff)
Add systemd unit file template
Diffstat (limited to 'jwebmail.service.tmpl')
-rw-r--r--jwebmail.service.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/jwebmail.service.tmpl b/jwebmail.service.tmpl
new file mode 100644
index 0000000..48776db
--- /dev/null
+++ b/jwebmail.service.tmpl
@@ -0,0 +1,16 @@
+[Unit]
+Description=JWebmail managed by hypnotoad
+After=network.target
+
+[Service]
+Type=exec
+User=$JWM_USER
+PIDFile=/run/$JWM_NAME.pid
+ExecStart=/usr/bin/hypnotoad -f $JWM_HOME/script/jwebmail
+ExecReload=/usr/bin/hypnotoad -f $JWM_HOME/script/jwebmail
+KillMode=process
+WorkingDirectory=$JWM_HOME
+Environment=MOJO_LOG_LEVEL=debug MOJO_LOG_SHORT=1
+
+[Install]
+WantedBy=multi-user.target