openldap-2.6.6
slapd usr/bin/slapd dizinine alındı comar /usr/bin/slapd olarak ayarlandı
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from comar.service import *
|
||||
|
||||
serviceType = "server"
|
||||
serviceDesc = _({"en": "OpenLDAP Server",
|
||||
"tr": "OpenLDAP Sunucusu"})
|
||||
serviceConf = "slapd"
|
||||
|
||||
def start():
|
||||
import os
|
||||
os.environ["LC_ALL"] = "C"
|
||||
os.environ["LANG"] = "C"
|
||||
|
||||
startService(command="/usr/libexec/slapd",
|
||||
args="-u ldap -g ldap %s" % config.get("OPTS", ""),
|
||||
pidfile="/run/openldap/slapd.pid",
|
||||
donotify=True)
|
||||
|
||||
def stop():
|
||||
stopService(pidfile="/run/openldap/slapd.pid",
|
||||
donotify=True)
|
||||
|
||||
def status():
|
||||
return isServiceRunning("/run/openldap/slapd.pid")
|
||||
Reference in New Issue
Block a user