Commit 17a14091 authored by Franco Fichtner's avatar Franco Fichtner

rc: improve configd reload behaviour

parent d0aa452c
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
# KEYWORD: shutdown # KEYWORD: shutdown
# #
# load standard rc
. /etc/rc.subr . /etc/rc.subr
name=configd name=configd
pidfile="/var/run/${name}.pid"
start_precmd=configd_prestart start_precmd=configd_prestart
start_postcmd=configd_poststart start_postcmd=configd_poststart
...@@ -73,15 +73,11 @@ configd_stop() ...@@ -73,15 +73,11 @@ configd_stop()
# cleanup after stopping configd # cleanup after stopping configd
configd_poststop() configd_poststop()
{ {
if [ -f /var/run/configd.pid ]; then if [ -S /var/run/configd.socket ]; then
rm /var/run/configd.pid
fi
if [ -f /var/run/configd.socket ]; then
rm /var/run/configd.socket rm /var/run/configd.socket
fi fi
} }
load_rc_config $name load_rc_config $name
configd_load_rc_config configd_load_rc_config
run_rc_command $1 run_rc_command $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment