Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37704435
en ru br
Репозитории ALT
S:5.9.11-alt1
5.1: 4.3.7-alt1.M51.1
4.1: 4.2.17-alt0.M41.1
4.0: 4.2.17-alt0.M40.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: strongswan

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

#!/bin/sh
#
# strongswan This shell script takes care of starting and stopping
# strongswan (IPSEC service).
#
# chkconfig: 35 55 10
# description: strongswan is an IPSEC implementation

WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
SourceIfNotEmpty /etc/sysconfig/network

# Source service configuration.
IPSEC=/usr/sbin/ipsec
PIDFILE=/var/run/starter.pid
RETVAL=0

start()
{
is_yes "$NETWORKING" || return 0

$IPSEC start
RETVAL=$?
return $RETVAL
}

stop()
{
$IPSEC stop
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
condstop)
if [ -e "$PIDFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$PIDFILE" ]; then
restart
fi
;;
status)
$IPSEC status
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|restart|condstop|condrestart|status}"
RETVAL=1
esac

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