All of lore.kernel.org
 help / color / mirror / Atom feed
From: Travis Place <wishie@wishie.net>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] Add better checks for pastebin.ca availability
Date: Wed, 02 Jul 2008 00:52:14 +1000	[thread overview]
Message-ID: <1214923934.16862.4.camel@temp-fallen> (raw)

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

At the moment, it seems that a) pastebin.ca (the host) is UP, and b) the
WEB SERVER on it is DOWN.

So ive implemented (even if messy) an extra check for this scenario.
I would consider using another pastebin service, but we have it pretty
good with slepp (the pastebin.ca owner) as he has allowed us to have our
own paste 'type' (which enables the areas to collapse, highlighting of
certain things, etc).

Changelog: Added an extra check to see if the Web Server is functioning
on our pastebin service. Now we check that the host is up, and the
webserver itself is alive.

Patch Attached.

Signed-off-by: Travis Place <wishie@wishie.net>

[-- Attachment #2: alsa-info.patch-0.4.49 --]
[-- Type: text/x-patch, Size: 783 bytes --]

--- alsa-info.sh	2008-07-02 00:43:36.000000000 +1000
+++ alsa-info.sh.wishie	2008-07-02 00:44:10.000000000 +1000
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-SCRIPT_VERSION=0.4.48
+SCRIPT_VERSION=0.4.49
 CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog"
 
 #################################################################################
@@ -32,8 +32,17 @@
 PASTEBINKEY="C9cRIO8m/9y8Cs0nVs0FraRx7U0pHsuc"
 #Define some simple functions
 
+pbweb(){
+[[ $(wget http://pastebin.ca/index.php &> /dev/null) ]] || KEEP_FILES="yes" NOUPLOAD="yes" PBERROR="yes" 
+}
+
 pbcheck(){
-	[[ $(ping -c1 www.pastebin.ca) ]] || KEEP_FILES="yes" NOUPLOAD="yes" PBERROR="yes"
+if [[ $(ping -c1 www.pastebin.ca) ]]
+then
+pbweb
+else
+KEEP_FILES="yes" NOUPLOAD="yes" PBERROR="yes"
+fi
 }
 
 update() {

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2008-07-01 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 14:52 Travis Place [this message]
2008-07-01 16:49 ` [PATCH] Add better checks for pastebin.ca availability Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1214923934.16862.4.camel@temp-fallen \
    --to=wishie@wishie.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.