I have found that if I start a service, kill it manually, and then try to stop it, the system will still think the service is running (/var/lib/init.d/started/servicename still exists). The error occurs in /sbin/runscript.sh, near the bottom of the svc_stop() function (~ line 218)--there is a line there to remark the service as running (apparently to make runlevel changes go more smoothly?) under certain circumstances. I am fairly certain this line should never be executed in the simple case that stopping a service fails.. It would also be nice if there were more checks throughout the RC system to make sure there aren't stale marks lingering in /var/lib/init.d/started. Reproducible: Always Steps to Reproduce: 1. /etc/init.d/gpm start 2. killall gpm 3. /etc/init.d/gpm stop (obviously fails, but leaves a mark in /var/lib/init.d/started) 4. /etc/init.d/gpm start (fails because of stale mark) Expected Results: /var/lib/init.d/started/gpm should have been removed. Using baselayout 1.8.6.13 emerge info: Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="gentoo.mirrors.pair.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl aim alsa apm arts avi berkdb cdr crypt cups dvd encode esd evo foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 icq imagemagick imlib jabber java joystick jpeg kde ladcca libg++ libwww mad mikmod mmx motif mozilla mpeg msn ncurses nls offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdk sdl slang spell ssl svga tcpd theora tiff truetype usb x86 xinerama xml xml2 xmms xv yahoo zlib"
thats the point of the 'zap' option