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

rc: improve configd reload behaviour

parent d0aa452c
......@@ -7,10 +7,10 @@
# KEYWORD: shutdown
#
# load standard rc
. /etc/rc.subr
name=configd
pidfile="/var/run/${name}.pid"
start_precmd=configd_prestart
start_postcmd=configd_poststart
......@@ -73,15 +73,11 @@ configd_stop()
# cleanup after stopping configd
configd_poststop()
{
if [ -f /var/run/configd.pid ]; then
rm /var/run/configd.pid
fi
if [ -f /var/run/configd.socket ]; then
if [ -S /var/run/configd.socket ]; then
rm /var/run/configd.socket
fi
}
load_rc_config $name
configd_load_rc_config
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