Re: Random thoughts. (Was Stuff)

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

 



Robert P. J. Day wrote:

You can get a list of the supported commands by using an invalid
option. I like "service <name> help" as in:

# service smb help
Usage: /etc/init.d/smb {start|stop|restart|reload|status|condrestart}

or you could just leave the option out entirely, to get exactly the
same result:

  # service smb
  Usage: /etc/init.d/smb {start|stop|restart|reload|status|condrestart}

heh.  top *that*.

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.

The script just reports how it was invoked (i.e. $0). Programs usually don't know about parent wrappers or what human command actually set things in motion. And that's normally a good thing. You want each component to work the same way every time regardless of circumstances.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux