Restart syslog on UNIX

(imported topic written by anthonymap91)

I am trying to write a action script that will stop and start syslog on a UNIX server.

command to stop:

/etc/rc.d/init.d/syslog stop

command to start:

/etc/rc.d/init.d/syslog start

I was thinking about appendfile /etc/rc.d/init.d/syslog restart, but not sure if that will work or not.

thanks

(imported comment written by BenKus)

Hi Anthony,

I think you have several options including running those commands in a row:

wait /etc/rc.d/init.d/syslog stop
wait /etc/rc.d/init.d/syslog start

Ben