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