|
|
@ -37,7 +37,7 @@ DISTRO = "Mandrake"
|
|
|
|
initdir = "/etc/init.d"
|
|
|
|
initdir = "/etc/init.d"
|
|
|
|
rcdir = "/etc/rc.d"
|
|
|
|
rcdir = "/etc/rc.d"
|
|
|
|
|
|
|
|
|
|
|
|
chtdeconfigpath = "/sbin/chtdeconfig"
|
|
|
|
chkconfigpath = "/sbin/chkconfig"
|
|
|
|
statusblacklist = ['iptables']
|
|
|
|
statusblacklist = ['iptables']
|
|
|
|
|
|
|
|
|
|
|
|
# Are we running as a separate standalone application or in KControl?
|
|
|
|
# Are we running as a separate standalone application or in KControl?
|
|
|
@ -132,7 +132,7 @@ class Service(object):
|
|
|
|
place = 1
|
|
|
|
place = 1
|
|
|
|
elif place==1: # Grab the short description line.
|
|
|
|
elif place==1: # Grab the short description line.
|
|
|
|
if line!="#":
|
|
|
|
if line!="#":
|
|
|
|
if line.startswith("# chtdeconfig:"):
|
|
|
|
if line.startswith("# chkconfig:"):
|
|
|
|
parts = line[12:].split()
|
|
|
|
parts = line[12:].split()
|
|
|
|
if len(parts)>=1:
|
|
|
|
if len(parts)>=1:
|
|
|
|
for c in parts[0]:
|
|
|
|
for c in parts[0]:
|
|
|
@ -151,7 +151,7 @@ class Service(object):
|
|
|
|
self.longname = line[2:]
|
|
|
|
self.longname = line[2:]
|
|
|
|
place = 2
|
|
|
|
place = 2
|
|
|
|
elif place==2: # Look for the description line
|
|
|
|
elif place==2: # Look for the description line
|
|
|
|
if line.startswith("# chtdeconfig:"):
|
|
|
|
if line.startswith("# chkconfig:"):
|
|
|
|
parts = line[12:].split()
|
|
|
|
parts = line[12:].split()
|
|
|
|
if len(parts)>=1:
|
|
|
|
if len(parts)>=1:
|
|
|
|
for c in parts[0]:
|
|
|
|
for c in parts[0]:
|
|
|
|