#! /bin/sh #---------------------------------------------------------------------------- # /etc/init.d/single - switch to single user mode # # Creation : 2001-08-07 fm # Last Update: $Id$ # # Copyright (c) 2001-2012 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /etc/init.d/functions boot_mesg " * Running $0 ..." case "$1" in start) boot_mesg " * Sending all processes the TERM signal ..." /sbin/killall5 -15 sleep 5 evaluate_retval boot_mesg " * Sending all processes the KILL signal ..." killall5 -9 evaluate_retval ;; stop) ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac exit 0