Skip to content

Commit

Permalink
adjust reload in rpm/src/mackerel-agent.initd
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jan 12, 2018
1 parent aebcab1 commit f3d2206
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packaging/rpm/src/mackerel-agent.initd
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ retire() {
echo
}

reload() {
configtest_q || return 1
echo -n $"Reloading $prog:"
killproc -p $PIDFILE $BIN -HUP
retval=$?
echo
return $retval
}

rh_status() {
status -p $PIDFILE $prog
}
Expand All @@ -155,8 +164,7 @@ case "$1" in
exit $retval
;;
reload)
configtest_q || exit 1
restart
$1
;;
restart)
$1
Expand Down

0 comments on commit f3d2206

Please sign in to comment.