mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 07:36:38 +02:00
21 lines
410 B
Bash
Executable File
21 lines
410 B
Bash
Executable File
#!/bin/sh
|
|
# Rehash Script v2.0
|
|
# $Id$
|
|
|
|
IRCDPID="ircd.pid"
|
|
|
|
if [ ! -r $IRCDPID ]; then
|
|
clear
|
|
echo "**** ERROR ****"
|
|
echo "UnrealIRCd (PID: `cat $IRCDPID`) was not found running, cannot rehash"
|
|
echo ""
|
|
else
|
|
PID=`cat $IRCDPID`
|
|
kill -HUP $PID
|
|
echo "|----------------------------------------"
|
|
echo "| UnrealIRCD successfully rehashed."
|
|
echo "| Process ID: $PID"
|
|
echo "|----------------------------------------"
|
|
fi
|
|
|