Docker.io init.d script not working on start container

后端 未结 5 1639
故里飘歌
故里飘歌 2021-02-02 17:31

I\'ve a container with odoo on it on the dir \"/opt/odoo/\".

A init script on \"/etc/init.d/odoo-server\"

#!/bin/bash
### BEGIN INIT INFO
# Provides:            


        
5条回答
  •  耶瑟儿~
    2021-02-02 18:02

    Looks like your shebang is not correct, instead of #!/bin/bash it should be #! /bin/sh

    See: https://unix.stackexchange.com/questions/124566/how-to-debug-init-d-script-that-isnt-being-run

提交回复
热议问题