ccdd61
[Unit]
ccdd61
Description=GNU Mailing List Manager
ccdd61
After=syslog.target network.target
ccdd61
ccdd61
[Service]
ccdd61
ExecStartPre=/usr/lib/mailman/bin/mailman-update-cfg
ccdd61
ExecStartPre=/usr/bin/install -m644 -o root -g root /usr/lib/mailman/cron/crontab.in /etc/cron.d/mailman
ccdd61
ExecStartPre=/bin/touch /var/log/mailman/error
ccdd61
ExecStartPre=/bin/chown mailman:mailman /var/log/mailman/error
ccdd61
ExecStartPre=/bin/chmod 660 /var/log/mailman/error
ccdd61
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ccdd61
ExecReload=/usr/lib/mailman/bin/mailmanctl restart
ccdd61
ExecStop=/usr/lib/mailman/bin/mailman-update-cfg
ccdd61
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
ccdd61
ExecStop=/bin/sh -c 'echo -e "# DO NOT EDIT THIS FILE!\n#\n# Contents of this file managed by /etc/init.d/mailman\n# Master copy is /usr/lib/mailman/cron/crontab.in" > /etc/cron.d/mailman'
ccdd61
Type=forking
ccdd61
ccdd61
[Install]
ccdd61
WantedBy=multi-user.target
ccdd61