Loading... ## 0x00 主要原因是脚本不符合LSB tags规范,在#!/bin/bash下面添加如下代码即可 **以tomcat为例** ``` ### BEGIN INIT INFO # Provides: bbzhh.com # Required-Start: $local_fs $network # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: tomcat service # Description: tomcat service daemon ### END INIT INFO ``` 最后修改:2022 年 01 月 03 日 © 允许规范转载