Posts: 141
Joined: Nov 2009
Reputation:
3
muggi
Senior Member
Posts: 141
hi,
i´ve now build a startup script and this i want to test now.
Please correct if you see a mistake in the script
#!/bin/bash
### BEGIN INIT INFO
# Provides: Imon Icons
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Start, Stop or Restart IMon Icons
### END INIT INFO
# Shell functions sourced from /etc/rc.status:
# set -e
# Reset status of this service
# rc_reset
#
case "$1" in
start)
echo -n "Starting Imon Icons "
/root/imon.pl
;;
stop)
echo -n "Shutting down Imon Icons "
/usr/bin/killall imon
;;
restart)
echo -n "Restart Imon Icons "
$0 stop
sleep 20
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
# rc_exit
exit 0
mfg
muggi
Posts: 141
Joined: Nov 2009
Reputation:
3
muggi
Senior Member
Posts: 141
Now i´ve a my start/stop script working
#!/bin/bash
### BEGIN INIT INFO
# Provides: Imon Icons
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Start, Stop or Restart IMon Icons
### END INIT INFO
# Shell functions sourced from /etc/rc.status:
# set -e
# Reset status of this service
# rc_reset
#
case "$1" in
start)
echo -n "Starting Imon Icons "
/root/imon.pl
;;
stop)
echo -n "Shutting down Imon Icons "
/usr/bin/killall imon
;;
restart)
echo -n "Restart Imon Icons "
$0 stop
sleep 20
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
# rc_exit
exit 0
i copy this imon starts/stop script to init.d
and
sudo update rc.d imon defaults 65 65
it works perfect...
greets muggi
Posts: 141
Joined: Nov 2009
Reputation:
3
muggi
Senior Member
Posts: 141
hi,
you need to install this...(it was a horror trip to find out this)
sudo apt-get install libwww-perl
greetz muggi
_______________________________________________
CASE: Silverstone with Imon LCD/ Harmony ONE
BOARD: Zotac IONITX 330 D-E / 6 Terrabytes
NAS: Synology Diskstation 8TB RAID5
Software: XBMC Live Skin: Modded Confluence AppleTV2: XBMC....rocks
KARATELIGHT
Posts: 19
Joined: Nov 2009
Reputation:
0
legan
Junior Member
Posts: 19
Great stuff!
Can anyone tell me how to stop LCDproc from interfering and displaying the LCDproc status every few seconds?
That's really annoying, as I just want to see the information XBMC sends to the display.
Thanks.