mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
rc: improve configd reload behaviour
This commit is contained in:
parent
d0aa452c0a
commit
17a1409179
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user