- add "Reopen log file" on RH init.d script

This commit is contained in:
root 2010-07-30 11:35:36 +04:00
parent e03b4ff0c1
commit 04c02d3f2f

View File

@ -68,6 +68,14 @@ reload() {
return $RETVAL
}
relog() {
echo -n $"Reopen main log file: "
killproc uhub -SIGHUP
RETVAL=$?
echo ""
return $RETVAL
}
rhstatus() {
status uhub
RETVAL=$?
@ -90,11 +98,14 @@ case "$1" in
reload)
reload
;;
relog)
relog
;;
status)
rhstatus
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
echo $"Usage: $0 {start|stop|restart|reload|relog|status}"
exit 2
esac