#!/bin/sh #---------------------------------------------------------------------------------------- # /etc/init.d/quotacheck - quotacheck script for quota # # Copyright (c) 2004-2008 Jens Berger # # Creation: 01.01.2004 jb # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------------------- quotacheck=/usr/sbin/quotacheck quota_needs_reboot=/var/quota/quota_needs_reboot # reading eislib . /var/install/include/eislib # reading lsb init functions . /lib/lsb/init-functions case $1 in start) if [ -e $quota_needs_reboot ]; then rm -f $quota_needs_reboot fi log_begin_msg "Checking disk quotas. This may take some time..." # Remember, XFS filesystem do not need quotacheck, this is done internally by XFS. $quotacheck -aumfg >/dev/null 2>&1 log_end_msg $? ;; *) mecho -info "Usage: $0 {start}" ;; esac