# landscape-client - Landscape client daemons are needed # to allow a Landscape Server to manage this system. description "Landscape client daemons" start on filesystem stop on runlevel [016] env LANDSCAPE_DEFAULTS=/etc/default/landscape-client env RUN=0 # overridden in /etc/default/landscape-client env CLOUD=0 # overridden in /etc/default/landscape-client pre-start script [ -f $LANDSCAPE_DEFAULTS ] && . $LANDSCAPE_DEFAULTS if [ $RUN -eq 0 ] then if landscape-is-cloud-managed then # Install the cloud default configuration file cp /usr/share/cloud-default.conf /etc/landscape/client.conf # Override default file for not going in this conditional again at # next startup sed -i "s/^RUN=.*/RUN=1/" $LANDSCAPE_DEFAULTS if ! grep -q "^RUN=" $LANDSCAPE_DEFAULTS then echo "RUN=1" >> $LANDSCAPE_DEFAULTS fi else echo "landscape-client is not configured, please run landscape-config." exit 0 fi else echo "landscape-client is not configured, please run landscape-config." exit 0 fi end script exec /usr/bin/landscape-client