[Lvlug] assigning multiple returns
mstanley at technologist.com
Fri Apr 9 21:36:19 EDT 2004
On Friday 09 April 2004 21:10, Faber Fedor wrote:
> On Fri, Apr 09, 2004 at 08:16:01PM -0400, Mark wrote:
> > # RedHat 9 does all their ethernet magic in the
> > # /etc/sysconfig/network-scripts/ directory.
> > if [ $PWD == "/etc/sysconfig/network-scripts" ]; then
> > echo $DATETIME $LOGMSG >> /var/log/messages
> You should use the logger function to log to the log files:
> logger user.info $LOGMSG
> And it will be inserted into /var/log/messages in the standard format.
> It will also prevent problems when you and another process (syslog) are
> trying to write to the file at the same time.
I knew there had to be a better way. I just looked at 'man logger' and
noticed "-f file Log the specified file." Does that mean I have to specify
> > `/sbin/service $daemon start &`
> > `/sbin/chkconfig --level 2345 $daemon on &`
> Are the trailing &s necessary?
I don't know that they are but I tried to consider what would happen if one of
the services hung on start. Obviously named has to come up before httpd but
I was thinking that I'd hate to have the whole script borked just because
vsftpd wouldn't start. I have hopes that this script will eventually run
> Hmmm, does /sbin/service return anything?
I don't quite remember but I don't recall seeing anything. Except... maybe it
did say "xxxxx service started." Even if it did though couldn't we just let
it fly? I mean what would it hurt?
More information about the Lvlug