FS#8491 - service script to handle /etc/rc.d/* stuff

Attached to Project: Arch Linux
Opened by Alessio Bolognino (mOLOk) - Saturday, 03 November 2007, 00:05 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 30 July 2008, 16:58 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Very Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Here it is!
( see also  FS#8481  )

   service (0.8 KiB)
This task depends upon

Closed by  Aaron Griffin (phrakture)
Wednesday, 30 July 2008, 16:58 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Just use /etc/rc.d/<tab>. Completion is better that way
Comment by Alessio Bolognino (mOLOk) - Saturday, 03 November 2007, 00:22 GMT
the usage is simple:

service <service_name> <command>

e.g.

#> service esd restart

Well, the script is very easy, I think there is nothing else to explain.
Comment by Thomas Bächler (brain0) - Monday, 05 November 2007, 17:12 GMT
I am really not sure why we would need it. The use seems similar to SuSE's rc$DAEMON commands(symlinks). What is bad about typing /etc/rc.d/*?
Comment by Roman Kyrylych (Romashka) - Monday, 05 November 2007, 17:20 GMT
In case you'll want to merge this script - here's a sligtly improved version that also implements  FS#5721 .
Comment by Roman Kyrylych (Romashka) - Monday, 05 November 2007, 17:25 GMT
About "why wee need it" - did you see  FS#8481 ? Aaron suggested a script here instead of "virtual" completion. IMHO such completion (with or without the script) would be OK - just as a useful shortcut.
Comment by Aaron Griffin (phrakture) - Tuesday, 06 November 2007, 17:56 GMT
I don't think we "need it" but it's a "nice to have" and I don't see a huge problem with it. That's why I had this opened, so we could evaluate it on it's own merit.
Comment by Gavin Bisesi (Daenyth) - Tuesday, 11 March 2008, 18:53 GMT
I like the idea. Perhaps for future versions, instead of using $# -gt 2, why not pass those parameters to the service being called? All the rc.d scripts I've seen would ignore extra parameters (I could be wrong about this I suppose). It would also play nicer for ones which do accept more options. Not sure of any that would, or would even find such a thing useful... But it can't really hurt.
Comment by Glenn Matthys (RedShift) - Tuesday, 17 June 2008, 08:29 GMT
What's wrong with plainly using /etc/rc.d/<bla>? If you're using a decent shell you already have tab completion, and I don't really see the need to invent another way of starting daemons? To me this is another layer of complexity.

Loading...