From c99b7e3c1f2840c94214f913e607cad45ae98fb9 Mon Sep 17 00:00:00 2001 From: Tony DiCola Date: Tue, 10 Feb 2015 22:59:16 -0800 Subject: [PATCH] Add disable script and default to console output on. --- disable.sh | 11 +++++++++++ video_looper.ini | 7 +++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 disable.sh diff --git a/disable.sh b/disable.sh new file mode 100755 index 0000000..f2f4105 --- /dev/null +++ b/disable.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Make sure script is run as root. +if [ "$(id -u)" != "0" ]; then + echo "Must be run as root with sudo! Try: sudo ./disable.sh" + exit 1 +fi + +# Disable any supervisor process that start video looper. +supervisorctl stop video_looper +mv /etc/supervisor/conf.d/video_looper.conf /etc/supervisor/conf.d/video_looper.conf.disabled diff --git a/video_looper.ini b/video_looper.ini index 6bfb186..a398bee 100644 --- a/video_looper.ini +++ b/video_looper.ini @@ -43,10 +43,9 @@ bgcolor = 0, 0, 0 # above. Default is 255, 255, 255 or white. fgcolor = 255, 255, 255 -# Enable some output to standard output with program state. Good for debugging -# but otherwise should be disabled. -console_output = false -#console_output = true +# Output program state to standard output if true. +console_output = true +#console_output = false # Directory file reader configuration follows. [directory]