From a365c5e671bcd631b21149a09895594b032c5119 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 13 Mar 2023 21:41:07 +0100 Subject: Add systemd unit file template --- jwebmail.service.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 jwebmail.service.tmpl (limited to 'jwebmail.service.tmpl') 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 -- cgit v1.2.3