On Thu, Aug 03, 2000 at 07:08:38AM -0000, John Conover wrote:
! exec env - PATH="$PATH:/usr/local/bin" my_prog 2>&1 | \
! splogger my_prog_id 3
Almost. Use the log directory instead, if you can (replace qmaill with
whatever user you want to run your log process on):
cd /service/foobar
printf '#!/bin/sh\nexec env - PATH="$PATH:/usr/local/bin" my_prog 2>&1' > run
chmod +x run
mkdir log
printf '#!/bin/sh\nexec setuidgid qmaill splogger my_prog_id 3' > log/run
chmod +x log/run
chmod +t .
If the main process dies for some reason, the logging program is kept
running ``so that no data is lost'' (according to the svscan page).
---Chris K.
--
Chris, the Young One |_ If you can't afford a backup system, you can't
Auckland, New Zealand |_ afford to have important data on your computer.
http://cloud9.hedgee.com/ |_ ---Tracy R. Reed
PGP: 0xCCC6114E/0x706A6AAD |_