我创建了以下内容脚本:
#!/bin/bash
su administrador -c "/home/administrador/scripts/startup_tomcat_hsqldb.sh"
我添加了/etc/init.d
。当我运行命令:
sudo update-rc.d start-tomcat-auto.sh defaults
我得到了以下信息:
insserv: warning: script 'K01start-tomcat-auto.sh' missing LSB tags and overrides
insserv: warning: script 'start-tomcat-auto.sh' missing LSB tags and overrides
我该如何解决这个问题?
答案1
我认为初始化脚本在开始时需要这样的内容:
# Provides: chillispot et freeradius dans le chroot
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Wireless & LAN Access Point Controller
# Description: ChilliSpot is an open source captive portal
# or wireless LAN access point controller.
### END INIT INFO