From c1710d2c2bce79230ba38252603c75626fe634c1 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 2 Dec 2023 01:29:37 +0000 Subject: [PATCH] Removed daemon files. --- daemon | 45 --------------------------------------------- daemon.out | 10 ---------- 2 files changed, 55 deletions(-) delete mode 100644 daemon delete mode 100644 daemon.out diff --git a/daemon b/daemon deleted file mode 100644 index 9699f58..0000000 --- a/daemon +++ /dev/null @@ -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 diff --git a/daemon.out b/daemon.out deleted file mode 100644 index b09c538..0000000 --- a/daemon.out +++ /dev/null @@ -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