On 4/10/19 8:06 AM, Bryan Blackwell wrote: > 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
You may want to add PIPFile=/home/mailman/data/master-qrunner.pid However, I don't think that's relevant to your issue. I don't know why the rm command doesn't work. How do you know it doesn't? But, in any case, I don't think it's a good idea. the -s in '/mailmanctl -s -q start' should suffice to clean any stale locks. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org