#262 pid file not removed with systemd
Closed: wontfix None Opened 12 years ago by rmeggins.

The initscript and other stop scripts will remove the .pid file at shutdown. However, with systemd, there doesn't appear to be a way to do this. This causes multiple problems:

1) during setup -u, many of the scripts are only executed when the server is stopped, and they only check for the presence of the .pid file to see if the server is running.

This currently only affects F-16 and later


Would be a stupid question... You specifically set "/usr/bin/rm" not "/bin/rm". My F14 and F15 do not have /usr/bin/rm, but just /bin/rm.
$ rpm -qf /bin/rm
coreutils-8.10-2.fc15.x86_64

The location of rm is changed on the system which supports systemd?
23 ExecStopPost=/usr/bin/rm -f @localstatedir@/run/@package_name@/slapd-%i.pid

Replying to [comment:2 nhosoi]:

Would be a stupid question... You specifically set "/usr/bin/rm" not "/bin/rm". My F14 and F15 do not have /usr/bin/rm, but just /bin/rm.
$ rpm -qf /bin/rm
coreutils-8.10-2.fc15.x86_64

The location of rm is changed on the system which supports systemd?
23 ExecStopPost=/usr/bin/rm -f @localstatedir@/run/@package_name@/slapd-%i.pid

Good point. I originally had /bin/rm but the systemd guys told me to use /usr/bin instead. Since this doesn't exist on F-16 either, I changed it back to /bin/rm.

To ssh://git.fedorahosted.org/git/389/ds.git
353b914..c006d67 master -> master
commit changeset:c006d67/389-ds-base
Author: Rich Megginson rmeggins@redhat.com
Date: Fri Jan 20 16:00:20 2012 -0700
Reviewed by: nhosoi (Thanks!)
Branch: master
Fix Description: The PIDDIR directive was problematic - just use the full
path to the pid dir. Add the ExecStopPost directive to remove the .pid
file after shutdown.
Platforms tested: Fedora 16
Flag Day: no
Doc impact: no

Added initial screened field value.

Metadata Update from @rmeggins:
- Issue assigned to rmeggins
- Issue set to the milestone: 1.2.10.a7

7 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/262

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

3 years ago

Login to comment on this ticket.

Metadata