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