はじめまして、和田と申します。
Linux歴1ヶ月の初心ですが宜しくお願いします。
Vine2.6にapcupsd3.8.5を
./configure --enable-cgi --with-cgi-bin=/usr/local/www/acp
make
make install
を行った後
/etc/rc.d/init.d/apcupsdをスタートした後
システムを再起動しようと思ったのですが、途中で下記のエラーがでて
再起動できないでいます。
INIT: no more processes left in this runlevel
また、make installを行った際にhaltサービスうんたらとでていたのでhaltを起動し
た後
apcupsdも起動するように設定してから再起動かけると上記エラー+起動が出来なく
なります。
起動するように設定しているサービスは以下です。
apcupsd
crond
httpd
inet
keytable
named
network
postgresql
sshd
syslog
webmin
rc.local
apcupsdの内容
#! /bin/sh
#
# apcupsd This shell script takes care of starting and stopping
# the apcupsd UPS monitoring daemon.
#
# chkconfig: 2345 20 99
# description: apcupsd monitors power and takes action if necessary
#
APCPID=/var/run/apcupsd.pid
DISTVER=`cat /etc/redhat-release | grep release | cut -f 5 -d ' '`
# Source function libarary
. /etc/rc.d/init.d/functions
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
rm -f /etc/nologin
echo -n "Starting UPS monitoring:"
if [ "${DISTVER}" = "5.2" ] ; then
/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
else
/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf && success || failure
fi
echo
touch /var/lock/subsys/apcupsd
;;
stop)
echo -n "Shutting down UPS monitoring:"
killproc apcupsd
echo
rm -f $APCPID
rm -f /var/lock/subsys/apcupsd
;;
restart)
$0 stop
sleep 15
$0 start
;;
status)
/sbin/apcaccess status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit 0