From 6abfe511873874d2a4d6a9bddb2fb0b6a6cc7535 Mon Sep 17 00:00:00 2001 From: Kevin Brubeck Unhammer Date: Thu, 15 Aug 2024 15:03:56 +0200 Subject: [PATCH] upstart is discontinued --- tools/upstart/apertium | 11 ----------- tools/upstart/apertium-all.conf | 3 --- tools/upstart/apertium-apy-gateway.conf | 25 ------------------------ tools/upstart/apertium-apy.conf | 25 ------------------------ tools/upstart/apertium-html-tools.conf | 26 ------------------------- 5 files changed, 90 deletions(-) delete mode 100644 tools/upstart/apertium delete mode 100644 tools/upstart/apertium-all.conf delete mode 100644 tools/upstart/apertium-apy-gateway.conf delete mode 100644 tools/upstart/apertium-apy.conf delete mode 100644 tools/upstart/apertium-html-tools.conf diff --git a/tools/upstart/apertium b/tools/upstart/apertium deleted file mode 100644 index 40a004afe..000000000 --- a/tools/upstart/apertium +++ /dev/null @@ -1,11 +0,0 @@ -APERTIUMPATH=/home/jonathan/quick/apertium/svn - -PAIRSPATH=$APERTIUMPATH/trunk - -APYPATH=$APERTIUMPATH/trunk/apertium-tools/apertium-apy -HTMLTOOLSPATH=$APERTIUMPATH/trunk/apertium-tools/apertium-html-tools - -SERVERLIST=$APYPATH/serverlist - -#optional: -LOGFILE=/etc/logs/apertium-apy.log diff --git a/tools/upstart/apertium-all.conf b/tools/upstart/apertium-all.conf deleted file mode 100644 index d0764409a..000000000 --- a/tools/upstart/apertium-all.conf +++ /dev/null @@ -1,3 +0,0 @@ -description "start all apertium services" - -start on startup diff --git a/tools/upstart/apertium-apy-gateway.conf b/tools/upstart/apertium-apy-gateway.conf deleted file mode 100644 index 94f25e87c..000000000 --- a/tools/upstart/apertium-apy-gateway.conf +++ /dev/null @@ -1,25 +0,0 @@ -description "apertium-apy gateway init script" - -start on starting apertium-all -stop on stopped apertium-all -respawn -respawn limit 50 300 # try to respawn 50 times in 300 seconds (5 minutes) - -env CONFIG=/etc/default/apertium - -script - . $CONFIG - python3 $APYPATH/apertium_apy/gateway.py $SERVERLIST -end script - -pre-start script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB started" >> $LOGFILE -end script - -post-stop script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB stoppped" >> $LOGFILE -end script diff --git a/tools/upstart/apertium-apy.conf b/tools/upstart/apertium-apy.conf deleted file mode 100644 index 7aec9c5bc..000000000 --- a/tools/upstart/apertium-apy.conf +++ /dev/null @@ -1,25 +0,0 @@ -description "apertium-apy init script" - -start on starting apertium-all -stop on stopped apertium-all -respawn -respawn limit 50 300 - -env CONFIG=/etc/default/apertium - -script - . $CONFIG - python3 $APYPATH/apy.py $APERTIUMPATH -end script - -pre-start script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB started" >> $LOGFILE -end script - -post-stop script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB stoppped" >> $LOGFILE -end script diff --git a/tools/upstart/apertium-html-tools.conf b/tools/upstart/apertium-html-tools.conf deleted file mode 100644 index fb77d73d0..000000000 --- a/tools/upstart/apertium-html-tools.conf +++ /dev/null @@ -1,26 +0,0 @@ -description "apertium-html-tools init script" - -start on starting apertium-all -stop on stopped apertium-all -respawn -respawn limit 50 300 - -env CONFIG=/etc/default/apertium - -script - . $CONFIG - cd $HTMLTOOLSPATH - python3 -m http.server 8888 -end script - -pre-start script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB started" >> $LOGFILE -end script - -post-stop script - . $CONFIG - touch $LOGFILE - echo "`date` $UPSTART_JOB stoppped" >> $LOGFILE -end script