I am trying to restart an LDAP server running on a CentOS machine so as to apply new SSL certificates. I have tracked the service to being run as
/usr/sbin/ns-slapd -D /etc/dirsrv/slapd-<instance> -i /var/run/dirsrv/slapd-<instance>.pid -w /var/run/dirsrv/slapd-<instance>.startpid
How can I restart this service? My ideas so far are to either reboot the whole computer as this service is set to run at startup. My other idea is to run that same command again however I have no guarantee that will work.
These commands service ldap\ldaps restart
both return unrecognized service
. No variation of ldap, ldaps, slapd or ns-slapd appear in the output of chkconfig --list
. Should have put that in my question
sudo systemctl restart ldap
on v7, orsudo service ldap restart
on v5, v6. Orsudo systemctl list-units --type=service
on v7 to list all services and find its name, akasudo chkconfig --list
on v5, v6service ldap\ldaps restart
both returnunrecognized service
. No variation ofldap
,ldaps
,slapd
orns-slapd
appear in the output ofchkconfig --list
. Should have put that in my question.