Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37433958
en ru br
Репозитории ALT
S:0.5.12-alt4
5.1: 0.5.9-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: incron

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/bin/bash
#
# incrond This shell script enables the incrond daemon
#
# Author: Ruben Kerkhof <ruben@rubenkerkhof.com>
#
# chkconfig: - 97 03
#
# description: This is a daemon which works like cron, but handles filesystem events
# instead of time periods.
# and can send notifications via mail, dbus or syslog.
# processname: incrond
# pidfile: /var/run/incrond.pid

# source function library

. /etc/init.d/functions

PIDFILE=/var/run/incrond.pid
LOCKFILE=/var/lock/subsys/incrond
RETVAL=0

start() {
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- incrond
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root incrond
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
status)
status --pidfile "$PIDFILE" --expect-user root incrond
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|condreload}"
exit 1
esac

exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin