The permissions on this repository are being updated. This may take a while.
During this time, you or some of the project's contributors may not be able
to push to this repository.
41e0e84Ticket #48148 - start/stop/restart-dirsrv utilities should ignore admin-serv directory
Ticket #48148 - start/stop/restart-dirsrv utilities should ignore admin-serv directory
Description:
1) The script restart-dirsrv also needed to skip /etc/sysconfig/dirsrv-admin.
This patch silently skips "dirsrv-admin" for restarting dirsrv, as well.
2) If the non-root user runs start/stop/restart-dirsrv, it checks ~/.dirsrv
to look for the dirsrv-* file. If the directory is empty, it accidentally
picks up a file name from the current directory, which is not right.
This patch checks the /etc/sysconfig or ~/.dirsrv directory whether the
dirsrv-* file exists or not. If it does not, the scripts just exit with
SUCCESS (== 0).
https://fedorahosted.org/389/ticket/48148
Reviewed and commentted by rmeggins@redhat.com (Thank you, Rich!!)
(cherry picked from commit 070037a3f9ac880c5c38e38419ad23bf4209eb47)