25
25
. /lib/lsb/init-functions
26
26
[ -f $LANDSCAPE_DEFAULTS ] && . $LANDSCAPE_DEFAULTS
28
# This $RUN check should match the semantics of
29
# l.sysvconfig.SysVConfig.is_configured_to_run.
30
if [ $RUN -eq 0 ]; then
31
if [ $CLOUD -eq 1 ]; then
32
if landscape-is-cloud-managed; then
33
# Install the cloud default configuration file
34
cp /usr/share/landscape/cloud-default.conf /etc/landscape/client.conf
35
# Override default file for not going in this conditional again at
37
sed -i "s/^RUN=.*/RUN=1/" $LANDSCAPE_DEFAULTS
38
if ! grep -q "^RUN=" $LANDSCAPE_DEFAULTS; then
39
echo "RUN=1" >> $LANDSCAPE_DEFAULTS
42
echo "$NAME is not configured, please run landscape-config."
46
echo "$NAME is not configured, please run landscape-config."
29
# This $RUN check should match the semantics of
30
# l.sysvconfig.SysVConfig.is_configured_to_run.
31
if [ $RUN -eq 0 ]; then
32
if [ $CLOUD -eq 1 ]; then
33
if landscape-is-cloud-managed; then
34
# Install the cloud default configuration file
35
cp /usr/share/landscape/cloud-default.conf /etc/landscape/client.conf
36
# Override default file for not going in this conditional again at
38
sed -i "s/^RUN=.*/RUN=1/" $LANDSCAPE_DEFAULTS
39
if ! grep -q "^RUN=" $LANDSCAPE_DEFAULTS; then
40
echo "RUN=1" >> $LANDSCAPE_DEFAULTS
43
echo "$NAME is not configured, please run landscape-config."
47
echo "$NAME is not configured, please run landscape-config."
53
56
log_daemon_msg "Starting the $NAME daemon"
54
57
if [ ! -e $PIDDIR ]; then