areguera / rpms / mailman

Forked from rpms/mailman 5 years ago
Clone
49da8b
[Unit]
49da8b
Description=GNU Mailing List Manager
49da8b
After=syslog.target network.target
49da8b
49da8b
[Service]
49da8b
ExecStartPre=/usr/lib/mailman/bin/mailman-update-cfg
49da8b
ExecStartPre=/usr/bin/install -m644 -o root -g root /usr/lib/mailman/cron/crontab.in /etc/cron.d/mailman
49da8b
ExecStartPre=/bin/touch /var/log/mailman/error
49da8b
ExecStartPre=/bin/chown mailman:mailman /var/log/mailman/error
49da8b
ExecStartPre=/bin/chmod 660 /var/log/mailman/error
49da8b
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
49da8b
ExecReload=/usr/lib/mailman/bin/mailmanctl restart
49da8b
ExecStop=/usr/lib/mailman/bin/mailman-update-cfg
49da8b
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
49da8b
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'
49da8b
Type=forking
49da8b
49da8b
[Install]
49da8b
WantedBy=multi-user.target
49da8b