- 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
1 changed files with 12 additions and 1 deletions

View File

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