Add fields to airtime.example.conf for compatibility, remove /etc/init scripts to prevent duplicate processes on startup

This commit is contained in:
Duncan Sommerville 2015-06-17 14:49:12 -04:00
parent 8f59d18f34
commit 92ad5bde6d
4 changed files with 38 additions and 12 deletions

View File

@ -4,8 +4,8 @@
# #
# This is an example configuration for Airtime. If you just want to # This is an example configuration for Airtime. If you just want to
# get started with a basic Airtime setup, or don't know if you should # get started with a basic Airtime setup, or don't know if you should
# be reconfiguring any of the following values, just rename this file # be reconfiguring any of the following values, just move this file
# to 'airtime.conf'. # to '/etc/airtime/' and rename it 'airtime.conf'.
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -37,6 +37,11 @@
# engine (pypo) should cache scheduled media files. # engine (pypo) should cache scheduled media files.
# The default is 1. # The default is 1.
# #
# airtime_dir: Only used in saas, needed for compatibility.
#
# station_id: The Airtime station name.
# Only used in saas, needed for compatibility.
#
[general] [general]
api_key = api_key =
web_server_user = www-data web_server_user = www-data
@ -44,6 +49,8 @@ base_url = localhost
base_port = 80 base_port = 80
base_dir = / base_dir = /
cache_ahead_hours = 1 cache_ahead_hours = 1
airtime_dir =
station_id =
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -107,6 +114,23 @@ vhost = /airtime
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# M O N I T
# ----------------------------------------------------------------------
#
# These settings are only for backwards compatibility.
#
# user: The username for the monit user.
#
# password: The password for the monit user.
#
[monit]
user =
password =
#
# ----------------------------------------------------------------------
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# M E D I A M O N I T O R # M E D I A M O N I T O R
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -132,10 +156,12 @@ vhost = /airtime
# The default is 0.1 # The default is 0.1
# #
# logpath: The media monitor log file path # logpath: The media monitor log file path
# The default is '/var/log/airtime/media-monitor/media-monitor.log' # The default is
# '/var/log/airtime/media-monitor/media-monitor.log'
# #
# index_path: The media monitor index path # index_path: The media monitor index path
# The default is '/var/tmp/airtime/media-monitor/last_index' # The default is
# '/var/tmp/airtime/media-monitor/last_index'
# #
[media-monitor] [media-monitor]
check_filesystem_events = 5 check_filesystem_events = 5

10
install
View File

@ -467,11 +467,11 @@ verbose "\n * Installing pypo..."
loudCmd "python ${AIRTIMEROOT}/python_apps/pypo/setup.py install --install-scripts=/usr/bin" loudCmd "python ${AIRTIMEROOT}/python_apps/pypo/setup.py install --install-scripts=/usr/bin"
verbose "...Done" verbose "...Done"
for i in /etc/init/airtime*.template; do #for i in /etc/init/airtime*.template; do
chmod 644 $i # chmod 644 $i
sed -i "s/WEB_USER/${web_user}/g" $i # sed -i "s/WEB_USER/${web_user}/g" $i
mv $i ${i%.template} # mv $i ${i%.template}
done #done
set +e set +e
loudCmd "initctl reload-configuration" loudCmd "initctl reload-configuration"

View File

@ -22,7 +22,7 @@ else:
mm2_files.append(os.path.join(root, filename)) mm2_files.append(os.path.join(root, filename))
data_files = [ data_files = [
('/etc/init', ['install/upstart/airtime-media-monitor.conf.template']), # ('/etc/init', ['install/upstart/airtime-media-monitor.conf.template']),
('/etc/init.d', ['install/sysvinit/airtime-media-monitor']), ('/etc/init.d', ['install/sysvinit/airtime-media-monitor']),
('/etc/airtime', ['install/media_monitor_logging.cfg']), ('/etc/airtime', ['install/media_monitor_logging.cfg']),
('/var/log/airtime/media-monitor', []), ('/var/log/airtime/media-monitor', []),

View File

@ -18,8 +18,8 @@ else:
pypo_files.append(os.path.join(root, filename)) pypo_files.append(os.path.join(root, filename))
data_files = [ data_files = [
('/etc/init', ['install/upstart/airtime-playout.conf.template']), # ('/etc/init', ['install/upstart/airtime-playout.conf.template']),
('/etc/init', ['install/upstart/airtime-liquidsoap.conf.template']), # ('/etc/init', ['install/upstart/airtime-liquidsoap.conf.template']),
('/etc/init.d', ['install/sysvinit/airtime-playout']), ('/etc/init.d', ['install/sysvinit/airtime-playout']),
('/etc/init.d', ['install/sysvinit/airtime-liquidsoap']), ('/etc/init.d', ['install/sysvinit/airtime-liquidsoap']),
('/var/log/airtime/pypo', []), ('/var/log/airtime/pypo', []),