Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 61517

Summary: [PATCH] Enhancement to runscript.sh: zapstart (zaps a service and then starts it normally)
Product: Gentoo Linux Reporter: Jonathan Fors <etnoy>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonathan Fors 2004-08-24 07:52:50 UTC
I have for a long time been annoyed about services that start and then fail, outside of the grasp of the init scripts. That will make the init-scripts think that the service is still running, meaning that I have to execute two commands to get it back to work when the problem is fixed. First I have to zap it:
/etc/init.d/service zap
And then start it up again.
/etc/init.d/service start

Running 
/etc/init.d/service restart
won't work, because the system thinks that the service is running, looks for it, and reports an error when it can't be found. That is of course correct, but the elegance is still missing. That's why I wrote the "zapstart" function.
It is in fact very basic. A small change to /sbin/runscript.sh adds "zapstart", which will zap a program and then start it up normally. 
A great time-saver for me

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Wegener gentoo-dev 2004-08-24 07:55:42 UTC
"/etc/init.d/service zap start" should already do what you want.
Comment 2 SpanKY gentoo-dev 2004-08-24 08:04:14 UTC
yep, no need to patch to save you from typing 1 more character
Comment 3 Jonathan Fors 2004-08-24 08:16:05 UTC
Oh. What a fool I am. Thanks!