Репозитории ALT
S: | 1.0.36-alt1 |
5.1: | 1.0.8-alt2.1 |
4.1: | 1.0.8-alt2 |
4.0: | 1.0.8-alt1 |
3.0: | |
+backports: | 1.0.7-alt0.M30.2 |
Группа :: Система/Серверы
Пакет: tinc
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#! /bin/sh
#
# chkconfig: 345 60 40
# description: Virtual Private Network (VPN) daemon that uses \
# tunnelling and encryption to create a secure private \
# network between hosts on the Internet.
# processname: tincd
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/rc.d/init.d/functions
unset TINC_ARGS
# Get config.
SourceIfNotEmpty /etc/sysconfig/network
SourceIfNotEmpty /etc/sysconfig/tinc
LOCKFILE=/var/lock/subsys/tinc
RETVAL=0
start()
{
msg_starting $"TINC"
start_daemon --lockfile "$LOCKFILE" -- tincd "$TINC_ARGS"
RETVAL=$?
return $RETVAL
}
stop()
{
msg_stopping $"TINC"
stop_daemon --lockfile "$LOCKFILE" -- tincd
RETVAL=$?
return $RETVAL
}
restart()
{
stop
start
}
reload()
{
msg_reloading $"TINC"
stop_daemon --lockfile "$LOCKFILE" --expect-user root -HUP -- tincd
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status tincd
RETVAL=$?
;;
restart)
restart
;;
reload)
reload
;;
condstop)
if [ -f "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -f "$LOCKFILE" ]; then
restart
fi
;;
*)
msg_usage "${0##*/} {start|stop|status|restart|reload|condstop|condrestart}"
RETVAL=1
esac
exit $RETVAL