For anyone interested, after several days of playing with systemd as it relates to qmail, and in particular deamontools, I found something that works.
This assumes a typical install from source as described on lifewithqmail.org and several sites referenced there.
For Fedora 15, do the following:
cd /lib/systemd/system
At /lib/systemd/system create a file named com.yourDomain.daemontools.svscan.service, replacing com.yourDomain with your specific info, of course.
Using your domain information as part of the service name provides uniqueness so that nothing steps on your file in the future.
The contents of that file is as follows (cut and paste from here if you want) :
[Unit]
Description=Daemontools svscan
After=syslog.target
[Service]
ExecStart=/usr/local/bin/svscan /service 2>&1 | /usr/local/bin/readproctitle /service errors: .................................................. ....
Restart=always
[Install]
WantedBy=multi-user.target
#WantedBy=graphical.target # This is redundant as the graphical.target is an implicit superset of multi-user.target
Then :
chcon --reference anyExistingFileInThatDirectory com.yourDomain.daemontools.svscan.service
systemctl enable com.yourDomain.daemontools.svscan.service
touch /.autorelabel
and bounce the box.
The relabel will apply typical selinux context info against all the qmail, daemontools, ucspi*, qmailscanner, etc stuff that you installed. Fedora comes with that and its latent till you do all your installs.
I spent hours (2 days actually) trying to get daemontools svc to work, knowing full well that systemd did the same job, so I finally tossed the normal part of the daemontools install that referenced svc.
I read some comments about systemd vs daemontools concerning memory footprint, efficiency, etc, and I could care less. I just want it to work.
Hope this helps someone.


Reply With Quote
