www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre3/bin/cinit.respawn.on

25 lines
412 B
Text
Raw Normal View History

#!/bin/sh
# Nico Schottelius
# cinit: switch respawning on
# 2005-05-24
set -e
# init variables
. $(dirname $0)/cinit.read-conf
if [ $# -lt 1 ]; then
echo "`basename $0`: service-name(s)"
echo " Services will be marked respawning"
exit 1
fi
BASEDIR=$DESTDIR/$CINIT_DIR
for svc in $@; do
echo -n "Marking $svc respawning ..."
touch "${BASEDIR}/${svc}/${C_RESPAWN}"
echo "finished."
done