Codebase list debian-goodies / bf36467
Use service instead of direct call of initscript (Closes: #602186) Thanks Jörg Sommer! Axel Beckert 12 years ago
2 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
182182 if path.startswith('/etc/init.d/'):
183183 if path.endswith('.sh'):
184184 continue
185 package.initscripts.add(path)
185 package.initscripts.add(path[12:])
186186 # Alternatively, find init.d scripts that match the process name
187187 if len(package.initscripts) == 0:
188188 for process in package.processes:
189 path = '/etc/init.d/' + os.path.basename(process.program)
190 if os.path.exists(path):
191 package.initscripts.add(path)
189 proc_name = os.path.basename(process.program)
190 if os.path.exists('/etc/init.d/' + proc_name):
191 package.initscripts.add(proc_name)
192192
193193 restartable = []
194194 nonrestartable = []
196196 for package in packages.values():
197197 if len(package.initscripts) > 0:
198198 restartable.append(package)
199 restartCommands.extend(map(lambda s: s + ' restart',package.initscripts))
199 restartCommands.extend(map(lambda s: 'service ' + s + ' restart',package.initscripts))
200200 else:
201201 nonrestartable.append(package)
202202
2020 - Bump version number to 1.4
2121 * [checkrestart]
2222 - Skip nagios spool files (Closes: #637238, thanks Guillaume Delacour)
23 - Use service instead of direct call of initscript (Closes: #602186,
24 thanks Jörg Sommer)
2325 * [bash_completion]
2426 - Install debmany bash completion file to /etc/bash_completion.d
2527 instead of as example. Rename it for easier use of dh_install.