After running:
sudo chkconfig --add X
sudo chkconfig X on
I ran chkconfig --list X
:
$ chkconfig --list X
X 0:off 1:off 2:on 3:on 4:on 5:on 6:off
My understanding is that, after kill -9
-ing it, the service will restart.
However, after running kill -9 $PID
where $PID
is the PID of the service's process, it did not restart.
In other words, running ps -ef | grep X
returned only the grep
result.
How can I use chkconfig
to ensure that, after my service crashes, it will restart?