Removed daemon files.

This commit is contained in:
flash 2023-12-02 01:29:37 +00:00
parent 1839991457
commit c1710d2c2b
2 changed files with 0 additions and 55 deletions

45
daemon
View file

@ -1,45 +0,0 @@
#!/bin/bash
function spawn () {
nohup php server.php > daemon.out 2>&1 &
PID=$!
echo $PID > daemon.pid
}
if [ -z $1 ]
then
if [ ! -e daemon.pid ]
then
nohup bash $0 start > /dev/null 2>&1 &
echo "Sock Chat Daemon started."
else
echo "ERROR: Sock Chat Daemon is already running!"
echo "To stop the daemon, use daemon stop"
fi
elif [ $1 = "start" ]
then
if [ ! -e daemon.pid ]
then
spawn
while [ -e daemon.pid ]
do
if ! ps -p $PID > /dev/null
then
echo "Server died unexpectedly! Restarting..."
spawn
fi
sleep 5
done
/bin/kill -s SIGKILL $PID
fi
elif [ $1 = "stop" ]
then
rm daemon.pid
echo "Sock Chat Daemon stopped."
else
echo "SOCK CHAT SERVER DAEMON"
echo
echo "USAGE: daemon [stop]"
fi

View file

@ -1,10 +0,0 @@
Could not connect to the database! Details: SQLSTATE[HY000] [1045] Access denied for user 'aroltd'@'localhost' (using password: YES)
PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'aroltd'@'localhost' (using password: YES) in /home/flash/nabucco/lib/db.php:121
Stack trace:
#0 /home/flash/nabucco/lib/db.php(121): PDO->__construct('mysql:host=loca...', 'aroltd', 'buddyman5', Array)
#1 /home/flash/nabucco/lib/db.php(106): sockchat\Database::SpawnConnection()
#2 /home/flash/nabucco/lib/db.php(207): sockchat\Database::Execute('clrusers')
#3 /home/flash/nabucco/server.php(32): sockchat\Database::TruncateUserList()
#4 /home/flash/nabucco/server.php(149): sockchat\Chat->__construct()
#5 {main}
thrown in /home/flash/nabucco/lib/db.php on line 121