Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/quota
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Enable/Check the quotas (must be after ypbind if using NIS) | # Enable/Check the quotas (must be after ypbind if using NIS) | ||||
# PROVIDE: quota | # PROVIDE: quota | ||||
# REQUIRE: mountcritremote ypset | # REQUIRE: mountcritremote ypset | ||||
# BEFORE: DAEMON | # BEFORE: DAEMON | ||||
# KEYWORD: nojail | # KEYWORD: nojail | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="quota" | name="quota" | ||||
desc="Enable/check the quotas" | |||||
rcvar="quota_enable" | rcvar="quota_enable" | ||||
load_rc_config $name | load_rc_config $name | ||||
start_cmd="quota_start" | start_cmd="quota_start" | ||||
stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}" | stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}" | ||||
quota_start() | quota_start() | ||||
{ | { | ||||
if checkyesno check_quotas; then | if checkyesno check_quotas; then | ||||
Show All 11 Lines |