2015-11-10, 20:04
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib # more shutdown.sh
#! /bin/sh
sleep 2
case "$1" in
ACPI)
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $2 > /sys/class/rtc/rtc0/wakealarm
;;
NVRAM)
nvram-wakeup -C /etc/nvram-wakeup.conf --directisa -s $2
;;
esac
case "$3" in
1)
shutdown -h now "TVHManager shutdown the system"
;;
esac
exit 0
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib # chmod +x shutdown.sh
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib # more ~/.kodi/temp/kodi.old.log | grep service.tvh.manager
07:33:30 T:140232888411904 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 237
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Service with id 237 finished
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Service with id 237 (V.0.3.2 on Kurosh-HTPC) kicks off
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 86
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Poweroff command received
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
11:39:53 T:140230700537600 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
11:39:58 T:140230700537600 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
11:39:58 T:140230700537600 NOTICE: [service.tvh.manager]: Service with id 86 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 1019
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 515
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 476
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:44 T:140230816429824 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
18:18:49 T:140230816429824 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:49 T:140230816429824 NOTICE: [service.tvh.manager]: Service with id 1019 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:50 T:140230917404416 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:50 T:140230917404416 NOTICE: [service.tvh.manager]: Service with id 515 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:56 T:140230948538112 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:56 T:140230948538112 NOTICE: [service.tvh.manager]: Service with id 476 (V.0.3.2 on Kurosh-HTPC) kicks off
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 751
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Poweroff command received
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
19:03:39 T:140230774474496 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
19:03:44 T:140230774474496 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
19:03:44 T:140230774474496 NOTICE: [service.tvh.manager]: Service with id 751 (V.0.3.2 on Kurosh-HTPC) kicks off
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 377
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 284
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 515
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:58 T:140230923368192 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 11.11.15 20:47
14:08:03 T:140230923368192 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
14:08:03 T:140230923368192 NOTICE: [service.tvh.manager]: Service with id 377 (V.0.3.2 on Kurosh-HTPC) kicks off
14:08:03 T:140230774478592 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
14:08:03 T:140230774478592 NOTICE: [service.tvh.manager]: Service with id 284 (V.0.3.2 on Kurosh-HTPC) kicks off
14:08:03 T:140230602622720 NOTICE: [service.tvh.manager]: Service with id 515 (V.0.3.2 on Kurosh-HTPC) kicks off
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib #
#! /bin/sh
sleep 2
case "$1" in
ACPI)
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $2 > /sys/class/rtc/rtc0/wakealarm
;;
NVRAM)
nvram-wakeup -C /etc/nvram-wakeup.conf --directisa -s $2
;;
esac
case "$3" in
1)
shutdown -h now "TVHManager shutdown the system"
;;
esac
exit 0
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib # chmod +x shutdown.sh
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib # more ~/.kodi/temp/kodi.old.log | grep service.tvh.manager
07:33:30 T:140232888411904 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 237
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Service with id 237 finished
07:33:31 T:140232888411904 NOTICE: [service.tvh.manager]: Service with id 237 (V.0.3.2 on Kurosh-HTPC) kicks off
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 86
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Poweroff command received
11:39:47 T:140230700537600 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
11:39:53 T:140230700537600 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
11:39:58 T:140230700537600 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
11:39:58 T:140230700537600 NOTICE: [service.tvh.manager]: Service with id 86 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 1019
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:33 T:140230816429824 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 515
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:34 T:140230917404416 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 476
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Poweroff command received
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
18:18:34 T:140230948538112 NOTICE: [service.tvh.manager]: Showing additional notification
18:18:44 T:140230816429824 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
18:18:49 T:140230816429824 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:49 T:140230816429824 NOTICE: [service.tvh.manager]: Service with id 1019 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:50 T:140230917404416 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:50 T:140230917404416 NOTICE: [service.tvh.manager]: Service with id 515 (V.0.3.2 on Kurosh-HTPC) kicks off
18:18:56 T:140230948538112 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
18:18:56 T:140230948538112 NOTICE: [service.tvh.manager]: Service with id 476 (V.0.3.2 on Kurosh-HTPC) kicks off
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 751
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Poweroff command received
19:03:33 T:140230774474496 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
19:03:39 T:140230774474496 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 08.11.15 19:47
19:03:44 T:140230774474496 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
19:03:44 T:140230774474496 NOTICE: [service.tvh.manager]: Service with id 751 (V.0.3.2 on Kurosh-HTPC) kicks off
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 377
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230923368192 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 284
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230774478592 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Settings loaded, starting service with id 515
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Connection to http://127.0.0.1 established
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Poweroff command received
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Display countdown dialog for 5 secs
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Countdown possibly invisible (fullscreen mode)
14:07:47 T:140230602622720 NOTICE: [service.tvh.manager]: Showing additional notification
14:07:58 T:140230923368192 NOTICE: [service.tvh.manager]: Wakeup for Recording by ACPI at 11.11.15 20:47
14:08:03 T:140230923368192 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
14:08:03 T:140230923368192 NOTICE: [service.tvh.manager]: Service with id 377 (V.0.3.2 on Kurosh-HTPC) kicks off
14:08:03 T:140230774478592 NOTICE: [service.tvh.manager]: Instruct the system to shut down using Kodi/XBMC method
14:08:03 T:140230774478592 NOTICE: [service.tvh.manager]: Service with id 284 (V.0.3.2 on Kurosh-HTPC) kicks off
14:08:03 T:140230602622720 NOTICE: [service.tvh.manager]: Service with id 515 (V.0.3.2 on Kurosh-HTPC) kicks off
Kurosh-HTPC:~/.kodi/addons/service.tvh.manager/resources/lib #