mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
Fix rc file order to respect defaults correctly, style nits and stop
calling test where expressions will do. Feature safe: yes
This commit is contained in:
parent
c7e7ccd7e9
commit
8d9d094172
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307290
@ -1,28 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start or stop vmpsd
|
||||
# $FreeBSD$
|
||||
|
||||
# PROVIDE: vmpsd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=vmpsd
|
||||
rcvar=vmpsd_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
# Define these vmpsd_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/vmpsd
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
[ -z "$vmpsd_enable" ] && vmpsd_enable="NO" # Enable vmpsd
|
||||
#vmpsd_program="%%PREFIX%%/sbin/vmpsd" # Location of vmpsd
|
||||
[ -z "$vmpsd_flags" ] && vmpsd_flags="-f /usr/local/etc/vmps.db" # Flags to vmpsd program
|
||||
|
||||
. /etc/rc.subr
|
||||
: ${vmpsd_enable:=NO} # Enable vmpsd
|
||||
: ${vmpsd_program:=%%PREFIX%%/sbin/vmpsd} # Location of vmpsd
|
||||
: ${vmpsd_flags=-f /usr/local/etc/vmps.db} # Flags to vmpsd program
|
||||
|
||||
name="vmpsd"
|
||||
rcvar=vmpsd_enable
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
run_rc_command $1
|
||||
|
Loading…
Reference in New Issue
Block a user