[gentoo-user] Re: [OT] attach a perl script to daemon services

2010-03-02 Thread Harry Putnam
Alan McKinnon alan.mckin...@gmail.com writes: On Monday 01 March 2010 06:16:09 Harry Putnam wrote: Alan McKinnon alan.mckin...@gmail.com writes: FWIW, Solaris syslogd is like other basic tools on Solaris: standards compliant in that it caters for the lowest common denominator that

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-03-02 Thread Alan McKinnon
On Wednesday 03 March 2010 00:26:35 Harry Putnam wrote: Alan McKinnon alan.mckin...@gmail.com writes: On Monday 01 March 2010 06:16:09 Harry Putnam wrote: Alan McKinnon alan.mckin...@gmail.com writes: FWIW, Solaris syslogd is like other basic tools on Solaris: standards compliant in

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-03-01 Thread Alan McKinnon
On Monday 01 March 2010 06:16:09 Harry Putnam wrote: Alan McKinnon alan.mckin...@gmail.com writes: FWIW, Solaris syslogd is like other basic tools on Solaris: standards compliant in that it caters for the lowest common denominator that comprises Unix. Which is to say, almost always useless

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-28 Thread Alan McKinnon
On Saturday 27 February 2010 20:40:17 Harry Putnam wrote: In the back of my mind there was a reason on opensolaris, that the script would fail if the fifo was empty... Then once data comes the script isn't listening. Or syslog won't write or something similar. I also have an opensolaris box

[gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-28 Thread Harry Putnam
Alan McKinnon alan.mckin...@gmail.com writes: FWIW, Solaris syslogd is like other basic tools on Solaris: standards compliant in that it caters for the lowest common denominator that comprises Unix. Which is to say, almost always useless for real work. A little turn towards OT: so what are

[gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-27 Thread Harry Putnam
Alan McKinnon alan.mckin...@gmail.com writes: On Friday 26 February 2010 23:44:03 Harry Putnam wrote: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-27 Thread Michael Higgins
On Sat, 27 Feb 2010 12:40:17 -0600 Harry Putnam rea...@newsguy.com wrote: reload() { ebegin Reloading evolone_agi configuration start-stop-daemon --signal 1 --pidfile /var/run/evolone_agi.pid eend $? Error reloading evolone_agi } Thanks ... good info. How does the

[gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-26 Thread Harry Putnam
Alan McKinnon alan.mckin...@gmail.com writes: Then tap into the fifo with a perl script that is written to be able to sort and write the syslog output according to various regex that may be part of startup cmd or fed in later during the running script. I don't know rsyslog at all (I use

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-26 Thread Alan McKinnon
On Friday 26 February 2010 23:44:03 Harry Putnam wrote: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep ps output for the daemon? Maybe I'm

Re: [gentoo-user] Re: [OT] attach a perl script to daemon services

2010-02-26 Thread Michael Higgins
On Sat, 27 Feb 2010 01:00:43 +0200 Alan McKinnon alan.mckin...@gmail.com wrote: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep ps output for the