Mainly, I've followed this info.
http://www.reddit.com/r/winkhub/comment ... t_locally/
So my init script is called S81openhab and looks as follows:
Code: Select all
[root@flex-dvt init.d]# cat S81openhab
#!/bin/sh
case "${1}" in
start)
echo -n "Starting openhab-monitor..."
/opt/openhab/openhab-monitor >> /var/log/openhab-monitor &
echo
;;
stop)
echo -n "Stopping openhab-monitor..."
killall openhab-monitor
echo
;;
restart)
${0} stop
sleep 1
${0} start
;;
*)
echo "Usage: $0 [start|stop|restart]"
;;
esac
[code]
And when I run the script, i get an error on Line 25, can'f find the file?
[code]
[root@flex-dvt init.d]# ./S81openhab start
Starting openhab-monitor...
[root@flex-dvt init.d]# ./S81openhab: line 25: /opt/openhab/openhab-monitor: not found
However, the file does exists in opt/openhab/ and is also set for 777 permissions. I can use nano and read the file just fine.
Does any using OpenHab have similar issues?