pentoo-overlay/net-mail/davmail-bin/files/davmail.service
Erik Quaeghebeur 94acb4f14f
properly add and cleanup net-mail/davmail init scripts
* systemd unit files are installed with the systemd_dounit function
* systemd unit files do not have an extra conf file extension
* small files like systemd unit files do not merit a separate use flag (Gentoo policy)
* \#!/sbin/runscript is deprecated, \#!/sbin/openrc-run should be used instead
2020-10-06 09:56:22 +02:00

18 lines
554 B
Desktop File

[Unit]
Description=Davmail Exchange gateway
Documentation=http://davmail.sourceforge.net/serversetup.html
Documentation=http://davmail.sourceforge.net/advanced.html
Documentation=http://davmail.sourceforge.net/sslsetup.html
After=network.target
[Service]
Type=simple
User=davmail
PermissionsStartOnly=true
ExecStartPre=/usr/bin/touch /var/log/davmail.log
ExecStartPre=/bin/chown davmail:davmail /var/log/davmail.log
ExecStart=/usr/bin/davmail -server /etc/davmail.properties
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target