账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    Ubuntu LSB脚本如何添加mysql依赖?
    56
    0

    网上查到的描述是这样的:Required-Start关键字来申明在运行该脚本之前应该需要先运行哪些脚本。
    我在# Required-Start: 添加了mysql服务,但是我把mysql服务停止后,执行/etc/init.d/myserver restart后mysql服务并不会在myserver服务启动前启动,而且还是stop状态。

    ### BEGIN INIT INFO
    # Provides:          myserver
    # Required-Start:    $remote_fs $syslog mysql
    # Required-Stop:     $remote_fs $syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start daemon at boot time
    # Description:       Enable service provided by daemon.
    ### END INIT INFO
    0
    打赏
    收藏
    点击回答
        全部回答
    • 共 0 条
    • 孤单与酒 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部