Port of "service" command

Kevin Downey redchin at gmail.com
Tue Jun 9 19:11:53 UTC 2009


I have a similar shell function I am rather fond of:

rc(){
    find /etc/rc.d/"$1" /usr/local/etc/rc.d/"$1" -exec sudo {} `echo
"$*"|cut -f 2- -d \ ` \;
}

kpd eskarina ~% rc ntpd restart
Stopping ntpd.
Waiting for PIDS: 1151.
Starting ntpd.
find: /usr/local/etc/rc.d/ntpd: No such file or directory
zsh: exit 1
kpd eskarina ~% rc hald status
find: /etc/rc.d/hald: No such file or directory
hald is running as pid 1450.
zsh: exit 1
kpd eskarina ~%



On Tue, Jun 9, 2009 at 10:46 AM, Edwin Shao<eshao at ring0.org> wrote:
> Hello,
>
> I was wondering if there was a port of the Linux/UNIX service
> <http://www.manpagez.com/man/8/service/>,
> <http://linux.die.net/man/8/service> command? If not, is there any
> philosophical reason or roadblock to my creating one?
>
> Thanks,
> Edwin
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?


More information about the freebsd-ports mailing list