FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Location
    Island of Roatan in the Caribbean
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    systemd for daemontools & qmail that works

    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.

  2. #2
    Join Date
    Dec 2011
    Location
    Augusta, GA
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: systemd for daemontools & qmail that works

    saved me a bunch thanks. I think the better way to go is to convert the svscan services to individual service jobs but at this point I just want to get my dnscache up and running so I can get the nightmare of a Fedora 16 upgrade fixed. Thanks again.

    Paul

  3. #3
    Join Date
    Jan 2012
    Location
    Chicago
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: systemd for daemontools & qmail that works

    It would be interesting to use the Fedora package 'supervisor' in place of daemontools.

    I haven't ventured in that direction though. The /usr/local/binreadproctitle utility of daemontools is useful. I wonder if there is an equivalent for supervisor.

Similar Threads

  1. Using systemd-analyze
    By frenchja in forum Using Fedora
    Replies: 4
    Last Post: 23rd February 2013, 03:30 AM
  2. Systemd - Automount
    By jvillain in forum F16 Development
    Replies: 0
    Last Post: 8th January 2011, 09:55 PM
  3. systemd?
    By ssidhar in forum F14 Development
    Replies: 5
    Last Post: 29th September 2010, 07:11 PM
  4. Be careful with systemd-8-1
    By dd_wizard in forum F14 Development
    Replies: 8
    Last Post: 27th August 2010, 04:12 AM
  5. Systemd came in - here's how to boot again. :)
    By GoinEasy9 in forum F16 Development
    Replies: 15
    Last Post: 1st August 2010, 04:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •