www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre17/bin/cinit-conf.svc.respawn.on
Nico Schottelius 759b58c293 released cinit-0.3pre17
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-10-05 19:14:52 +02:00

24 lines
421 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# cinit: switch respawning on
# 2005-05-24
set -e
# init variables
. "$(dirname $0)/cinit-conf.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