mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
eaae647065
- Fix RCNG stop_action
34 lines
697 B
Bash
34 lines
697 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: dcd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# dcd_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable dcd.
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="dcd"
|
|
rcvar=${name}_enable
|
|
|
|
command=%%PREFIX%%/sbin/dcd
|
|
sig_stop=-KILL
|
|
stop_cmd=stop_cmd
|
|
|
|
load_rc_config $name
|
|
|
|
stop_cmd()
|
|
{
|
|
kill $sig_stop $rc_pid
|
|
rm -f $pidfile
|
|
}
|
|
|
|
: ${dcd_enable="NO"}
|
|
|
|
run_rc_command "$1"
|
|
|