-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
On Friday 30 November 2007, Jerome Haltom <[EMAIL PROTECTED]> wrote: > A simple shell script could accomplish this: > > daemon | while read line; do logger "$line"; done Sorry, this is not sufficient. The logging part could die for various reasons, and the admin wouldn't notice. Thus, every piece of log data would end just nowhere. This is exactly why DJB chose to monitor the logging part separately. Please see http://cr.yp.to/daemontools/faq/create.html#run. Quote from the most important part: > It is generally not a good idea to use shell pipelines: > #!/bin/sh > generate-crucial-data | log-crucial-data > > If log-crucial-data fails to start up, any data already written to the > pipe by generate-crucial-data will be discarded. To fix this problem, use > a separate log. Eric -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHUIe2fkUtd7QNU/sRAn3ZAKCM/Z8GyVpXCDHkDSgWR2zqprYjYACgif8M KymUGMS+jjqfgmjCYhOKpak= =5+DV -----END PGP SIGNATURE----- -- upstart-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
