1

When I execute sudo init 3, the system executes the kill scripts in /etc/rc.3/

One of those scripts returns a failure (this is expected because the thing it's trying to do won't work). When I then do a sudo init 4, I notice that the script that had failed doesn't get launched. Is that the default behaviour in linux?

(I'm using CentOS 5.2 final)

  • Is there an instance of the script in /etc/rc.4? – DopeGhoti Jun 10 '16 at 22:57
  • Yes, if I tailor the kill script to always return 'success', the script in /etc/rc.4 runs successfully – Fidel Jun 10 '16 at 23:01
  • CentOS 5.2 hasn't been in support since ~2009. Perhaps you should consider running an update? – jsbillings Jun 11 '16 at 0:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.