dhclient-exit-hooks
fbsd
fbsd at a1poweruser.com
Thu May 4 00:37:46 UTC 2006
You missed this statement I posted
> IF I execute the same logger statements from the command
> line they work as expected.
That only could happen if the log files
were all ready in syslog.conf.
Good try.
You have good grasp of how logging works.
-----Original Message-----
From: Duane Whitty [mailto:duane at greenmeadow.ca]
Sent: Wednesday, May 03, 2006 6:50 PM
To: fbsd at a1poweruser.com
Cc: freebsd-questions at FreeBSD. ORG
Subject: Re: dhclient-exit-hooks
fbsd wrote:
> When this script runs the logger statements do not create any
> message in the targeted log files.
> IF I execute the same logger statements from the command
> line they work as expected.
Hi,
Forgive my ignorance if it turns out I'm totally off track here
but do you need a line in /etc/syslog.conf such as:
!name-of-your-script
*.* /var/log/dhcpd.log
^^^
or whatever level of logging you want
I couldn't get named to log so to /etc/syslog.conf I added
!named
*.* /var/log/named.log
and manually created /var/log/named.log
to have messages of all levels logged.
Just a shot in the dark...
Best Regards,
Duane Whitty
--
duane at greenmeadow.ca
More information about the freebsd-questions
mailing list