./categories/os
Ubuntu init.d 서비스 등록
서비스 등록 (SysV init.d)
cp /data/myservice.sh /etc/init.d/
chmod 755 /etc/init.d/myservice.sh
service myservice start
부팅 자동 실행
update-rc.d -f <daemon> defaults # 등록
update-rc.d -f <daemon> remove # 제거
상태 목록
service --status-all
참고: 최신 Ubuntu는 systemd 권장 (systemctl enable --now).
./comments