Ignore:
Timestamp:
Mar 10, 2016, 4:03:58 PM (5 years ago)
Author:
hectorgh
Message:

renaming etc initd slad calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-ldap/trunk/fuentes/install/usr/share/n4d/python-plugins/SlapdManager.py

    r331 r829  
    482482        def reboot_slapd(self):
    483483               
    484                 proc = subprocess.Popen(['/etc/init.d/slapd','restart'],stdout=subprocess.PIPE,stdin=subprocess.PIPE).communicate()
     484                proc = subprocess.Popen(['/usr/sbin/slapd-daemon-starter','restart'],stdout=subprocess.PIPE,stdin=subprocess.PIPE).communicate()
    485485               
    486486                return {"status":True,"msg":"Server is reboot"}
     
    767767       
    768768        def restore_backup_config(self, path):
    769                 os.system("/etc/init.d/slapd stop")
     769                os.system("/usr/sbin/slapd-daemon-starter stop")
    770770                os.system("rm -fr /etc/ldap/slapd.d/*")
    771771                os.system("slapadd -n 0 -l "+path+" -F /etc/ldap/slapd.d/")
    772772                os.system("chown -R openldap:openldap /etc/ldap/slapd.d/")
    773                 os.system("/etc/init.d/slapd start")
     773                os.system("/usr/sbin/slapd-daemon-starter start")
    774774                return {"status":True,"msg":"Config backup restored"}
    775775       
Note: See TracChangeset for help on using the changeset viewer.