Skip to content

Commit

Permalink
Reload : Fix defunct
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 10, 2018
1 parent d3b7baf commit dea91ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion daemon-init.in
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ restart() {

reload() {
echo -n "Reloading $prog: "
pkill -HUP -u ${user} -f ${exec}
if [ -e $pidfile ]; then
PID=cat $pidfile;
kill -HUP $PID >/dev/null 2>/dev/null
else
pkill -HUP -u ${user} -f ${exec}
fi
retval=$?
echo
}
Expand Down

0 comments on commit dea91ce

Please sign in to comment.