Random thoughts. (Was Stuff)

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sat Nov 3 15:07:52 UTC 2007


Robert P. J. Day wrote:
> 
>   # service smb
>   Usage: /etc/init.d/smb {start|stop|restart|reload|status|condrestart}
> 
> rday
> 
> p.s.  i am a little annoyed that the usage message doesn't reflect how
> you invoked that feature, instead referring to "/etc/init.d/smb".
> that's bound to confuse a few people who will have no idea what it's
> referring to.

I guess they figure anyone that is accessing the scripts from the
command line should be able to figure it out. After all, running
"/etc/init.d/smb status" is just a valid as "service smb status".
But if they can not figure out that
{start|stop|restart|reload|status|condrestart} means pick one of the
commands listed, they should not be trying to manage services from
the command line. (Should they be trying to configure services at all?)

Now, most of the commands are easy to understand, but I bet the
condrestart option will confuse some people. (Do a restart only if
the service is already running.)

There is one more command that only works when using service to
access the script. If you run "service <name> --full-restart", it is
the same as running "service <name> stop" followed by "service
<name> start" or "service <name> stop ; service <name> start".

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071103/162ce13b/attachment-0001.sig>


More information about the fedora-list mailing list