1819920 Members
2230 Online
109607 Solutions
New Discussion юеВ

syslogd restart

 
SILVERSTAR
Frequent Advisor

syslogd restart

Hi,

in case the syslogd is killed, is there any features on HP-UX 11.11 that restarts the deamon automatically ?

regards
Angelo
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: syslogd restart

No, you have to restart it manually.


Pete

Pete
Asif Sharif
Honored Contributor

Re: syslogd restart

Hi Angelo,
nopes, start it manually.

Regards,
Asif Sharif
Regards,
Asif Sharif
Borislav Perkov
Respected Contributor

Re: syslogd restart

Hi Angelo,

You have to restart it manually with

/sbin/init.d/syslogd start

Regards,
Borislav
Steven E. Protter
Exalted Contributor

Re: syslogd restart

Shalom Angelo,

You can write a script that checks if syslog is running or not and then restart it if its found not to be running.

Here is the script guts.


export UNIX95=1
syslrun=$(ps -C syslogd)

if [ $syslrun -eq 0 ]
then
/sbin/init.d/syslogd start
rc=$?
if [ $rc -ne 0 ]
then
# email someone
fi
fi


This code can be part of a serviceguard monitor or you can write your own daemon.

Its a lot of work writing this, versus just manually restarting, but you can, if you wish acheive your goal.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
SILVERSTAR
Frequent Advisor

Re: syslogd restart

Hi,

thanks for the prompt answer.
Is there any way to have two different conf file or two different syslogd ?

thanks
Angelo
Pete Randall
Outstanding Contributor

Re: syslogd restart

You can have any number of config files and simply specify which you wish to use when you startup syslogd. The -f option specifies the config file - see the man page for syslogd.


Pete

Pete