Re: Port of "service" command

2009-06-10 Thread Alex Kozlov
On Tue, Jun 09, 2009 at 12:30:44PM -0700, Doug Barton wrote: > Kevin Downey wrote: >> 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 \ ` \; >> } > > Wow, that's painful. :) The only reas

Re: Port of "service" command

2009-06-09 Thread Edwin Shao
Thanks for all the replies. It just gets annoying doing the whole /etc/rc.d or /usr/local/etc/rc.d dance. I was loathe to create my own script because it seemed such details as where the rc.d / init.d / etc. directories were located should be abstracted to the operating system, and thus, the opera

Re: Port of "service" command

2009-06-09 Thread RW
On Tue, 09 Jun 2009 12:30:44 -0700 Doug Barton wrote: > Kevin Downey wrote: > > 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 \ ` \; > > } > > Wow, that's painful. :) The only rea

Re: Port of "service" command

2009-06-09 Thread Steven Kreuzer
On Jun 9, 2009, at 1:46 PM, Edwin Shao wrote: Hello, I was wondering if there was a port of the Linux/UNIX service , command? If not, is there any philosophical reason or roadblock to my creating one? Not to long ag

Re: Port of "service" command

2009-06-09 Thread Doug Barton
Kevin Downey wrote: > 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 \ ` \; > } Wow, that's painful. :) The only reason you don't notice how painful is because those two directories have onl

Re: Port of "service" command

2009-06-09 Thread Kevin Downey
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 director

Re: Port of "service" command

2009-06-09 Thread Freddie Cash
On Tue, Jun 9, 2009 at 10:46 AM, Edwin Shao wrote: > I was wondering if there was a port of the Linux/UNIX service > , > command? If not, is there any > philosophical reason or roadblock to my creating one? > What's the

Re: Port of "service" command

2009-06-09 Thread Doug Barton
Doug Barton wrote: > Edwin Shao wrote: >> Hello, >> >> I was wondering if there was a port of the Linux/UNIX service >> , >> command? If not, is there any >> philosophical reason or roadblock to my creating one? > > I thi

Re: Port of "service" command

2009-06-09 Thread Doug Barton
Edwin Shao wrote: > Hello, > > I was wondering if there was a port of the Linux/UNIX service > , > command? If not, is there any > philosophical reason or roadblock to my creating one? I think you'd need to answer the qu

Port of "service" command

2009-06-09 Thread Edwin Shao
Hello, I was wondering if there was a port of the Linux/UNIX service , command? If not, is there any philosophical reason or roadblock to my creating one? Thanks, Edwin ___ fre