Revisión 156
Añadido por Esteban M. Navas Martín hace alrededor de 14 años
tareas_puppet/servidores_aula/apagado-terminales/files/halt-terminales | ||
---|---|---|
#! /bin/sh
|
||
### BEGIN INIT INFO
|
||
# Provides: halt-terminales
|
||
# Required-Start:
|
||
# Required-Stop:
|
||
# Default-Start:
|
||
# Default-Stop: 0 6
|
||
# Short-Description: Execute the reboot command.
|
||
# Description:
|
||
### END INIT INFO
|
||
|
||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||
|
||
. /lib/lsb/init-functions
|
||
|
||
do_stop () {
|
||
# Apagamos los terminales
|
||
/usr/sbin/apagaterminales.sh
|
||
}
|
||
|
||
case "$1" in
|
||
start)
|
||
# No-op
|
||
;;
|
||
restart|reload|force-reload)
|
||
echo "Error: argument '$1' not supported" >&2
|
||
exit 3
|
||
;;
|
||
stop)
|
||
do_stop
|
||
;;
|
||
*)
|
||
echo "Usage: $0 start|stop" >&2
|
||
exit 3
|
||
;;
|
||
esac
|
Exportar a: Unified diff
Añadido archivo halt-terminales al control de versiones