[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1885
  • Last Modified:

Stop syslog.log in HP-UNIX

Can you help me to stop siglog in HP-UX?
It happens I have a sysconf like this:
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug              /var/adm/syslog/mail.log
*.info;mail.none        /var/adm/syslog/syslog.log
*.info;mail.none        /tmp/syslog.log
*.alert                 /dev/console
*.alert                 root
*.emerg                 *
So, it's recording 2 syslog.log files. I  ave delete the above line for /tmp, but I do not know to stop and
re-start the  syslogd to use the new configuration?
0
Enrique Gomez Esteban
Asked:
Enrique Gomez Esteban
  • 2
1 Solution
 
ilkerduranCommented:
hi,
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
Regards,
ilker
0
 
TintinCommented:
Or

kill -1 <pid of syslogd>
0
 
Enrique Gomez EstebanAuthor Commented:
Well it happens that in HP-UX the command  syslogd stop/start is not implemented.
Reading some doc I think it could be syslogd -d (turning debug ON) but not sure.
0
 
TintinCommented:
The goal here is to get syslogd to recognise the updated syslog.conf file.

All versions of syslog will do this by sending SIGHUP to the syslogd process, hence

kill -1 <pid of syslogd>

is a better option than stopping/starting syslogd.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now