Rename airtime-liquidsoap to libretime-liquidsoap

BREAKING:
sudo rm -f \
  /etc/logrotate.d/airtime-liquidsoap
This commit is contained in:
jo 2021-10-03 16:12:04 +02:00
parent 8be1366bef
commit 25e947c8bf
6 changed files with 7 additions and 7 deletions

View File

@ -1015,7 +1015,7 @@ if [ ! -d /var/log/airtime ]; then
verbose "\n * Copying logrotate files..." verbose "\n * Copying logrotate files..."
loudCmd "cp ${AIRTIMEROOT}/legacy/build/airtime-php.logrotate /etc/logrotate.d/airtime-php" loudCmd "cp ${AIRTIMEROOT}/legacy/build/airtime-php.logrotate /etc/logrotate.d/airtime-php"
loudCmd "cp ${AIRTIMEROOT}/python_apps/pypo/liquidsoap/airtime-liquidsoap.logrotate /etc/logrotate.d/airtime-liquidsoap" loudCmd "cp ${AIRTIMEROOT}/python_apps/pypo/liquidsoap/logrotate.conf /etc/logrotate.d/libretime-liquidsoap"
fi fi
verbose "\n * Installing API client..." verbose "\n * Installing API client..."

View File

@ -36,7 +36,7 @@ def run():
) )
exec_args = [ exec_args = [
"/usr/bin/liquidsoap", "/usr/bin/liquidsoap",
"airtime-liquidsoap", "libretime-liquidsoap",
script_path, script_path,
"--verbose", "--verbose",
"-f", "-f",

View File

@ -6,6 +6,6 @@
notifempty notifempty
sharedscripts sharedscripts
postrotate postrotate
systemctl kill --signal=SIGUSR1 airtime-liquidsoap >/dev/null 2>&1 || true systemctl kill --signal=SIGUSR1 libretime-liquidsoap >/dev/null 2>&1 || true
endscript endscript
} }

View File

@ -193,7 +193,7 @@ class PypoFetch(Thread):
self.logger.info("Restarting Liquidsoap") self.logger.info("Restarting Liquidsoap")
subprocess.call( subprocess.call(
"kill -9 `pidof airtime-liquidsoap`", shell=True, close_fds=True "kill -9 `pidof libretime-liquidsoap`", shell=True, close_fds=True
) )
# Wait here and poll Liquidsoap until it has started up # Wait here and poll Liquidsoap until it has started up

View File

@ -30,9 +30,9 @@ def find_liquidsoap_binary():
the location of this binary. the location of this binary.
""" """
rv = subprocess.call("which airtime-liquidsoap > /dev/null", shell=True) rv = subprocess.call("which libretime-liquidsoap > /dev/null", shell=True)
if rv == 0: if rv == 0:
return "airtime-liquidsoap" return "libretime-liquidsoap"
return None return None

View File

@ -30,7 +30,7 @@ def printUsage():
def find_liquidsoap_binary(): def find_liquidsoap_binary():
""" """
With libretime 3.0 we are no longer depending upon the airtime-liquidsoap binary With libretime 3.0 we are no longer depending upon the libretime-liquidsoap binary
but use a generic install of liquidsoap. This takes care of checking if it is on the but use a generic install of liquidsoap. This takes care of checking if it is on the
path and will lead to an error otherwise. path and will lead to an error otherwise.
""" """