Re: Random thoughts. (Was Stuff)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux