0696600c41
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc. Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb)
36 lines
576 B
Bash
Executable File
36 lines
576 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"
|
|
desc="Enable/check the quotas"
|
|
rcvar="quota_enable"
|
|
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"
|