mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
469 B

  1. #!/bin/sh
  2. #
  3. # ROCK Linux: /etc/rc.d/init.d/openldap
  4. #
  5. # Desc: the OpenLDAP server
  6. # Runlevel: 30 rcX
  7. #
  8. main_begin
  9. block_begin(start, `Starting OpenLDAP.')
  10. check(`D_prefix/libexec/slapd -h "ldapi:/// ldap:///" &')
  11. block_end
  12. block_begin(stop, `Stopping OpenLDAP.')
  13. check(`killall -15 D_prefix/libexec/slapd')
  14. block_end
  15. block_begin(restart, `Restarting OpenLDAP.')
  16. check(`killall -1 D_prefix/libexec/slapd')
  17. block_end
  18. main_end