Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61517 - [PATCH] Enhancement to runscript.sh: zapstart (zaps a service and then starts it normally)
Summary: [PATCH] Enhancement to runscript.sh: zapstart (zaps a service and then starts...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-24 07:52 UTC by Jonathan Fors
Modified: 2004-08-24 08:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!