diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-03-13 21:41:07 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-03-13 21:41:07 +0100 |
commit | a365c5e671bcd631b21149a09895594b032c5119 (patch) | |
tree | a2adbd5d171affc8ce2edcd600fc192fbf6ffe6a | |
parent | 8ee2d7149baa58ea225cb40e0f95030ee21f1081 (diff) |
Add systemd unit file template
-rw-r--r-- | jwebmail.service.tmpl | 16 |
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 |