Drop Upstart support
This commit is contained in:
parent
3da0310173
commit
cac25543c6
7
install
7
install
|
@ -723,6 +723,13 @@ if $has_systemv_init; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if $is_centos_dist; then
|
||||||
python_bin="python3.8"
|
python_bin="python3.8"
|
||||||
apache_bin="httpd"
|
apache_bin="httpd"
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -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
|
|
Loading…
Reference in New Issue