Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37816245
en ru br
Репозитории ALT

Группа :: Сети/Прочее
Пакет: connman

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

#!/bin/sh
#
# Daemon for managing internet connections
#
# chkconfig: - 90 10
#
# description:
# The ConnMan project provides a daemon for managing internet connections within embedded devices
# running # the Linux operating system. The Connection Manager is designed to be slim and to use as
# few resources as possible, so it can be easyly integrated. It is a fully modular system that can
# be extended, through plug-ins, to support all kinds of wired or wireless technologies.
#
# processname: connmand
# config: /etc/template.conf
# pidfile: /var/run/connmand.pid

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

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

# Configuration file
SourceIfNotEmpty /etc/sysconfig/connman

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

start()
{
start_daemon --make-pidfile --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- \
connmand -n $CONNMAND_OPTS
RETVAL=$?
return $RETVAL
}

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

restart()
{
stop
start
}

reload()
{
msg_reloading template
stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP -- connmand
RETVAL=$?
return $RETVAL
}

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

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