[Mailman-Users] Systemctl unit file for MM

Bryan Blackwell bryan at skiblack.com
Wed Apr 10 11:06:28 EDT 2019


Hi folks,

I'm learning how to use systemd on my Fedora box, since I still had MM as a script startup I thought I'd fix that.  Below is a unit file, it starts and stops ok but the rm command doesn't work.  Comments welcome.

[Unit]
Description=Mailman, the GNU Mailing List Manager
After=local-fs.target postfix.service

[Service]
Type=forking
ExecStartPre=/bin/rm -f /home/mailman/locks/*
ExecStart=/usr/bin/python /home/mailman/bin/mailmanctl -s -q start
ExecReload=/usr/bin/python /home/mailman/bin/mailmanctl -q restart
ExecStop=/usr/bin/python /home/mailman/bin/mailmanctl -q stop

[Install]
WantedBy=multi-user.target


--  Bryan Blackwell --
Unix Systems Engineer
bryan at skiblack.com





More information about the Mailman-Users mailing list