1
0

ldap.init 294 B

12345678910111213141516171819
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009-2011 OpenWrt.org
  3. START=60
  4. SERVICE_USE_PID=1
  5. start() {
  6. mkdir -m 0755 -p /var/openldap-data
  7. service_start /usr/sbin/slapd -h "ldap://localhost/ ldaps:///"
  8. }
  9. stop() {
  10. service_stop /usr/sbin/slapd
  11. }
  12. reload() {
  13. service_reload /usr/sbin/slapd
  14. }