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!!)