/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/000-init-whitelist is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | case "$MODE" in
finalization)
rc_cleanup() {
LEVEL=$1; shift
if echo $LEVEL | grep -q '[2-5]' ; then
suffix="2345"
debug "Cleaning up startup services in init levels: $suffix ..."
else
suffix=$LEVEL
debug "Cleaning up startup services in rc$suffix.d ..."
fi
RC_DIR=$(cd $ROOT/etc/rc.d/rc$LEVEL.d/; ls S*)
for match in $@; do
RC_DIR=$(echo "$RC_DIR" | sed "s/S[0-9]*$match$//g")
done
for link in $RC_DIR; do
name=$(echo $link | sed 's/^S[0-9]*//')
chroot $ROOT chkconfig --level $suffix $name off
[ -f $ROOT/etc/rc.d/init.d/$name ] && chroot $ROOT chkconfig --del $name
done
}
[ -n "$RC2_WHITELIST" ] && rc_cleanup 3 $RC2_WHITELIST
;;
esac
|