Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#4688 - [initscripts] move towards more standard rc.d scripts

Attached to Project: Arch Linux
Opened by Dale Blount (dale) - Tuesday, 23 May 2006, 18:30 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 12 June 2009, 20:31 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Dale Blount (dale)
Aaron Griffin (phrakture)
Thomas B├Ąchler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No


It seems our rc.d initscripts could be more standardized than they are currently. Each daemon possibly uses a different kill style... kill/killall and uses the pid from pidof or sometimes from the file kept in /var/run/. Other distros use a killproc function that handles retrying the kill if first attempt fails, as well as sleeping for only the required amount of time (we use arbitrarily high values now, and sometimes that even fails).

here is the functions file from CentOS that contains this killproc bash function I speak of:

EDIT: File is now attached instead.

This task depends upon

Closed by  Aaron Griffin (phrakture)
Friday, 12 June 2009, 20:31 GMT
Reason for closing:  None
Additional comments about closing:  Use wiki page and prototype files: ing_rc.d_scripts
Comment by arjan timmerman (blaasvis) - Thursday, 25 May 2006, 16:02 GMT
i thing this should get into the mailing list and then added as an todo list ?
Comment by Dale Blount (dale) - Wednesday, 03 January 2007, 14:47 GMT
Attaching an rc.d script from nagios which also makes sure something is stopped before saying completed.
(application/octet-stream)    nagios (4.9 KiB)
Comment by Roman Kyrylych (Romashka) - Wednesday, 03 January 2007, 15:06 GMT
pastebin page is not available anymore
Comment by Dale Blount (dale) - Wednesday, 03 January 2007, 15:10 GMT
Oops, you're right. Attaching said file.
Comment by Andrea Garbarini (garba) - Tuesday, 13 February 2007, 17:19 GMT
I agree, consistency wise the rc scripts are terrible. The "sleep 3" thing gives me the shivers. Anyway, I believe the startup script that comes with nagios looks too bloated, for a start I would reccomend to come up with a decent template.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 04 June 2008, 17:53 GMT
What's the status of this? We have an rc.d-script prototype; does it address this issue?
Comment by Gavin Bisesi (Daenyth) - Tuesday, 07 October 2008, 15:38 GMT
Comment by Roman Kyrylych (Romashka) - Saturday, 18 October 2008, 15:21 GMT
I'd like to keep it open and do a review of common rc.d scripts in near future,
and also improve our initscripts package in this area.
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 11:28 GMT
I've started a wiki page with an example how an initscript should look like:
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 12 June 2009, 17:41 GMT
Maybe this task can be closed, wiki is more apropiate to review ideas.