144c607 Bug 695736 - Providing native systemd file for upcoming F15 Feature Systemd

Authored and Committed by rmeggins 12 years ago
    Bug 695736 - Providing native systemd file for upcoming F15 Feature Systemd
    
    https://bugzilla.redhat.com/show_bug.cgi?id=695736
    Resolves: bug 695736
    Bug Description: Providing native systemd file for upcoming F15 Feature Systemd
    Reviewed by: nhosoi, nkinder (Thanks!)
    Branch: master
    Fix Description: Since we support multiple instances of directory server,
    create a dirsrv.target, and have the instances "want" that target.  There
    is a service template file dirsrv@.service that supports replaceable
    parameters which are instance specific.  When a new instance is created,
    we create a symlink called dirsrv@$instance.service which links to the
    template file.  systemd fills in the %i with the correct instance name.
    The service command will not work.  You have to use the systemctl command:
    systemctl stop dirsrv@instance.service - single instance
    systemctl stop dirsrv.target - all instances
    There are still some outstanding issues with systemd:
    * systemctl restart dirsrv.target - will hang after shutting down the
    instances
    When using systemd, have to use the systemctl start command in startServer
    or other systemd commands like status, restart, stop will not work
    Note: the "group" name dirsrv.target is flexible - just change the
    --with-systemdgroupname=NAME when running configure
    Platforms tested: Fedora 16 x86_64
    Flag Day: yes
    Doc impact: yes
    
        
file modified
+46 -4
file modified
+78 -16
file modified
+158 -2
file modified
+0 -6
file modified
+12854 -7813
file modified
+67 -2
file modified
+0 -37
file modified
+700 -1039