You may disable the echo commands as they clog up your root's mailbox, and send a mail directly to root once the need of restarting a service arises.
/etc/init.d/servicenme restart 2> /tmp/restart
mail root < /tmp/restart
You may disable the echo commands as they clog up your root's mailbox, and send a mail directly to root once the need of restarting a service arises.
/etc/init.d/servicenme restart 2> /tmp/restart
mail root < /tmp/restart
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board