keedio / buildoopRecipes

Buildoop recipes, for easy package version maintenance
Apache License 2.0
3 stars 4 forks source link

Some yarn services auto start after reboot, check chkconfig in spec and init.d.tmpl files #81

Open mvalleavila opened 9 years ago

mvalleavila commented 9 years ago

Hadoop services are auto starting after reboot:

chkconfig in spec recipes should be change to off in hadoop recipe

mvalleavila commented 9 years ago

In hadoop.spec file change:

           env CHKCONFIG="345 85 15"       \
           INIT_DEFAULT_START="3 4 5"  \
           INIT_DEFAULT_STOP="0 1 2 6" \

to

           env CHKCONFIG="- 85 15"       \
           INIT_DEFAULT_START=""  \
           INIT_DEFAULT_STOP="" \

And in init.d.tmpl file change:

CHKCONFIG=${CHKCONFIG:-"2345 85 15"}
INIT_DEFAULT_START=${INIT_DEFAULT_START:-"2 3 4 5"}
INIT_DEFAULT_STOP=${INIT_DEFAULT_STOP:-"0 1 6"}
CHKCONFIG=${CHKCONFIG:-"- 85 15"}
INIT_DEFAULT_START=${INIT_DEFAULT_START:-""}
INIT_DEFAULT_STOP=${INIT_DEFAULT_STOP:-""}