我正在尝试在debian上设置一个初始化脚本。 当我输入“ update-rc.d teampeak defaults”时,将显示以下消息:
insserv: Script template is broken: incomplete LSB comment.
insserv: missing valid name for `Provides:' please add.
我的脚本(teamspeak):
#!/bin/sh
### BEGIN INIT INFO
# Provides: teamspeak
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ts3 server start script
# Description:
### END INIT INFO
case "$1" in
start)
su host -c "/home/ts/ts3server/./ts3server_startscript.sh start"
;;
stop)
su host -c "/home/ts/ts3server/./ts3server_startscipt.sh stop"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
我认为这是语法错误,我用nano编辑了文件。