CentOS의 많은 서비스는 다음과 같습니다 (각각 녹색과 빨간색 제외).
$ sudo service blah start
Starting blah: [ OK ]
$ sudo service notrunning stop
Stopping notrunning: [FAILED]
때문입니다 /etc/init.d스크립트에서 유틸리티 스크립트 사용 /etc/rc.d/init.d/functions이라고를 success하고 failure. /etc/init.d/sshdCentOS 의 스 니펫은 다음과 같습니다 .
echo -n $"Starting $prog: "
$SSHD $OPTIONS && success || failure
내 질문은 : 우분투 동등 물이 있습니까? 스크립트를 복사 할 수는 있지만 생각보다 복잡하며, 필요하지 않은 경우 바퀴를 다시 발명해야하는 이유는 무엇입니까?