areguera / rpms / mailman

Forked from rpms/mailman 5 years ago
Clone

Blame SOURCES/mailman.service

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