Package: debian-goodies
Version: 0.23
Severity: wishlist
It often happens that some of the processes that should be restarted
belong to packages which do have a restartable /etc/init.d file, but
nonetheless the offending process is not restarted by them. A typical
example is sshd daemons for active ssh connections.
The following patch is a simple modification to checkrestart that lists
the processes that are supposed to be restarted by the /etc/init.d
scripts, so that if they are not restarted, the user knows what they are
and can restart them manually.
--- checkrestart~ 2004-01-15 06:11:51.000000000 +0100
+++ checkrestart 2005-01-13 09:59:16.000000000 +0100
@@ -84,14 +84,21 @@
nonrestartable.append(package)
print
- print "Of these, %d seem to contain init scripts which can be used to
restart them:" % len(restartable)
+ print "Of these, the following seem to contain init scripts which can be
used to restart them:"
+ for package in restartable:
+ print package.name + ':'
+ for process in package.processes:
+ print "\t%s\t%s" % (process.pid,process.program)
+ print
+
+ print "These are the init scripts:"
print '\n'.join(restartCommands)
print
if len(nonrestartable) == 0:
sys.exit(0)
- print "Here are the others:"
+ print "Here are those that do not seem to contain an init script for
restarting them:"
for package in nonrestartable:
print package.name + ':'
for process in package.processes:
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-rc3-pr-hrt-1
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set
to C)
Versions of packages debian-goodies depends on:
ii curl 7.12.3-2 Get a file from an HTTP, HTTPS, FT
ii grep-dctrl 2.1.8 Grep Debian package information
ii lsof 4.71-1 List open files.
ii python 2.3.4-5 An interactive high-level object-o
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]