Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2009 11:40:15 -0700
From:      Kevin Downey <redchin@gmail.com>
To:        Edwin Shao <eshao@ring0.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Port of "service" command
Message-ID:  <1d3ed48c0906091140t37fbdd4eq84a1153348db7a53@mail.gmail.com>
In-Reply-To: <17ca67550906091046t15dfa574i95e432a09e60d379@mail.gmail.com>
References:  <17ca67550906091046t15dfa574i95e432a09e60d379@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>



--=20
And what is good, Phaedrus,
And what is not good=E2=80=94
Need we ask anyone to tell us these things?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d3ed48c0906091140t37fbdd4eq84a1153348db7a53>