Drop Upstart support

This commit is contained in:
jo 2021-09-02 14:11:40 +02:00
parent 3da0310173
commit cac25543c6
5 changed files with 7 additions and 77 deletions

View File

@ -723,6 +723,13 @@ if $has_systemv_init; then
exit 1
fi
# Upstart is not supported, fail fast instead of cleaning the whole script
# from Upstart related entries.
if $has_upstart_init; then
echo "ERROR: Installation on Upstart init system is not supported!" >&2
exit 1
fi
if $is_centos_dist; then
python_bin="python3.8"
apache_bin="httpd"

View File

@ -1,18 +0,0 @@
description "LibreTime Celery Service"
author "help@libretime.org"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
setuid celery
setgid celery
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
env RMQ_CONFIG_FILE=/etc/airtime/airtime.conf
chdir /srv/airtime
exec celery worker -A airtime-celery.tasks:celery --time-limit=300 --concurrency=1 --config=celeryconfig -l INFO

View File

@ -1,21 +0,0 @@
description "Airtime Analyzer"
author "help@sourcefabric.org"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
setuid www-data
setgid www-data
#expect fork
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
#script
# libretime-analyzer
#end script
exec libretime-analyzer

View File

@ -1,19 +0,0 @@
description "Airtime Liquidsoap"
author "help@sourcefabric.org"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
# Respawn it indefinitely
respawn limit unlimited
# Wait 3 seconds before spawning it again though, to throttle CPU.
post-stop exec sleep 3
setuid WEB_USER
setgid WEB_USER
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
exec airtime-liquidsoap

View File

@ -1,19 +0,0 @@
description "Pypo"
author "help@sourcefabric.org"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
# Respawn it indefinitely
respawn limit unlimited
# Wait 3 seconds before spawning it again though, to throttle CPU.
post-stop exec sleep 3
setuid WEB_USER
setgid WEB_USER
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
exec airtime-playout