#!bin/bash hadoop-daemon.sh start datanode exit 0
chmod 775 /etc/init.d/test.sh
1) 등록
update-rc.d test.sh defaults [실행순서][종료순서] # 실행순서와 종료순서는 옵션
2) 삭제
update-rc.d -f test.sh remove
https://klkl0.tistory.com/127