I've created a script using sudo nano yellowfin
and then put in below code and saved it, however when i try to run it it gives me the error that script yellowfin is not an executable regularfile, skipped
code in file
#!/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
then i update with
sudo update-rc.d yellowfin defaults