自動立ち上げの設定
#!/bin/sh # # chkconfig: 345 90 36 # description: enable quota # # quota を使うパッケージよりも早く起動し、 # 遅く終了すること。 # そうしないと意味が無い。 # See how we were called. case "$1" in start) echo -n "enable quota: " /sbin/quotacheck -avug /sbin/quotaon -avug echo touch /var/lock/subsys/quota ;; stop) echo -n "disable quota: " /sbin/quotaoff -avug echo rm -f /var/lock/subsys/quota ;; restart) echo -n "Restarting quota services: " $0 stop $0 start echo "done." ;; *) echo "Usage: quota {start|stop|restart}" exit 1 esac |