upstart
only ubuntu?
/etc/init/blabla.conf
description "upstart test" start on startup stop on shutdown respawn setuid ubuntu chdir /home/ubuntu/upstart_test exec echo "Hello World!" > hello.txt
- start on startup: 부팅 되면 실행 ( start on net-device-up : 인터넷에 연결 되면 실행 )
- respawn : 프로세스가 다운되면 자동으로 재시작
- chdir : 현재 디렉터리
- exec : 실제 프로세스 실행
init-checkconf /etc/init/blabla.conf sudo start blabla