Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using systemd to start qmail/netqmail

97 views
Skip to first unread message

Manvendra Bhangui

unread,
Jul 20, 2011, 9:24:45 AM7/20/11
to
FC9 had replaced sysv init scripts for the new init upstart. FC15 has
moved to a new init yet again. This time the init is systemd
http://en.wikipedia.org/wiki/Systemd

To have qmail/netqmail or my own indimail server run under systemd,
one needs to create a service configuration file
(/lib/systemd/system/qmail.service)

# cat > /lib/systemd/system/qmail.service
[Unit]
Description=qmail/netqmail service
After=local-fs.target network.target

[Service]
ExecStart=/var/qmail/bin/svscan /service
ExecStop=/var/qmail/bin/svc -dx /service/* /service/*/log
Type=simple
NonBlocking=yes

[Install]
WantedBy=multi-user.target


NOTE: You can use your own variation in ExecStart to start svscan
(using it with readproctitle, etc)

# systemctl enable qmail.service

The above command will create a link in
/etc/systemd/system/multi-user.target.wants

lrwxrwxrwx 1 root root 36 Jul 20 18:18 qmail.service ->
/lib/systemd/system/qmail.service


To start qmail/netqmail do

# systemctl start qmail.service

To stop qmail/netqmail do

# systemctl stop qmail.service


--
Regards Manvendra - http://www.indimail.org

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

0 new messages