0
我创建使用sudo nano yellowfin
然后脚本放在下面的代码,并保存它,但是当我尝试运行它,它给我的错误是script yellowfin is not an executable regularfile, skipped
脚本不是一间普通的可执行文件
在文件中的代码
#!/bin/bash
# USAGE: start|stop
#
case "$1" in
start)
echo "Starting Yellowfin."
/opt/yf/appserver/bin/startup.sh
;;
stop)
echo "Stopping Yellowfin."
/opt/yf/appserver/bin/shutdown.sh
;;
*)
echo “Yellowfin Service”
echo $”Usage: $0 {start|stop}”
exit 1
esac
exit 0
然后我用
sudo update-rc.d yellowfin defaults
你有没有记得[改变模式位(http://man7.org/linux/man-pages/man1/chmod.1.html)使脚本可执行? –
'chmod + x yellowfin' –
现在我已经做到了,并得到'脚本缺少LSB标记和覆盖' –