Date: 11/23/99
- Next message: Shan Vosseller: "[PHPLIB] digest mode?"
- Previous message: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- In reply to: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- Next in thread: Bob Bowker: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Reply: Bob Bowker: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Reply: Florian Gnägi: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Nov 23, 1999 at 08:16:10AM -0800, Bob Bowker wrote:
BB> Any better ideas on how to "shut down" the site ...?
I've used a lighter approach: create a "lock file" somewhere (ie, in tmp),
then test for the existance of the file in the prepend.php3 script.
The shell code for creating it is quite easy:
--- cut here ---
#!/bin/sh
set -e
DBLOCK=/tmp/lockthesite
trap "rm -f $DBLOCK; rm -rf "$TMP" > /dev/null 2>&1" exit
if lockfile -! -r 5 "$DBLOCK"; then
echo "Unable to get lock"
exit 1
fi
# Do something useful here!
--- cut here ---
Just my 0.02EUR.
--
Massimiliano Masserelli | URL: http://www.interim.it/
Internet Images S.r.l. | Tel: +39-051-3390671
vicolo Viazzolo, 3 | Fax: +39-051-557890
40124 - Bologna - Italy |
-------------------------------------------------------------------------------
La Terra -- madre delle donne piu' belle dell'universo.
-- Apollo, "Who Mourns for Adonais?", data astrale 3468.1
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Shan Vosseller: "[PHPLIB] digest mode?"
- Previous message: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- In reply to: Bob Bowker: "[PHPLIB] Sneaky Use of prepend.php3"
- Next in thread: Bob Bowker: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Reply: Bob Bowker: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Reply: Florian Gnägi: "Re: [PHPLIB] Sneaky Use of prepend.php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

