0b9b3ff55f
is correctly expanded inside stop_cmd instead of getting nothing. PR: conf/157687 Reported by: Dmitry Banschikov <d.banschikov peterhost ru> MFC after: 1 week
35 lines
542 B
Bash
Executable File
35 lines
542 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# Enable/Check the quotas (must be after ypbind if using NIS)
|
|
|
|
# PROVIDE: quota
|
|
# REQUIRE: mountcritremote ypset
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="quota"
|
|
rcvar=`set_rcvar`
|
|
load_rc_config $name
|
|
start_cmd="quota_start"
|
|
stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
|
|
|
|
quota_start()
|
|
{
|
|
if checkyesno check_quotas; then
|
|
echo -n 'Checking quotas:'
|
|
quotacheck ${quotacheck_flags}
|
|
echo ' done.'
|
|
fi
|
|
|
|
echo -n 'Enabling quotas:'
|
|
quotaon ${quotaon_flags}
|
|
echo ' done.'
|
|
}
|
|
|
|
run_rc_command "$1"
|