[go: up one dir, main page]

Menu

[cbf278]: / run.sh  Maximize  Restore  History

Download this file

28 lines (19 with data), 459 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/local/bin/bash
#
# lame bootup script.
# i don't use this, see extras/start.c for a different kind of supervisory
# script
#
#
#
CONFIG=../etc/ircbot.conf
PHP=/usr/local/bin/php
# run it in debug mode.
# hint: -d is *really* spammy and includes network debugging stuff
# -a is "production mode"
#FLAGS=-d
if [ ! -x $PHP ]; then
echo PHP interpretor $PHP was not found.
exit
fi
(cd src && $PHP lilbot.php3 $FLAGS $CONFIG )