#!/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 case $1 in start) if [ -e $quota_needs_reboot ]; then rm -f $quota_needs_reboot fi mecho -info "Checking non-XFS disk quotas. This may take some time ..." # Remember, XFS filesystem do not need quotacheck, this is done internally by XFS. $quotacheck -aug >/dev/null 2>&1 if [ $? = 0 ]; then mecho -info "Disk quotas succesfully checked." else mecho -error "Error while checking disk quotas." fi ;; *) mecho -info "Usage: $0 {start}" ;; esac