Service doesn't support chkconfig

后端 未结 5 676
独厮守ぢ
独厮守ぢ 2020-12-30 19:48

Good day,programmers. I have a problem. Please help. I am creating a service, which must load automatically when Linux is being loaded. So,I copied the script into the direc

5条回答
  •  时光说笑
    2020-12-30 20:17

    I was also facing this issue and it was not able to call stop function during shutdown. found the solution after trying so many suggestions on net. You need to add "touch /var/lock/subsys/" for start and rm -f /var/lock/subsys/" for stop functions in script. Stop may not work for first reboot as lock may be not available during shutdown but will start working from next reboot.

    Enjoy....:)

    Satya

提交回复
热议问题