Page MenuHomeDevCentral

D1945.diff
No OneTemporary

D1945.diff

diff --git a/roles/viperserv/eggdrop/files/rc/eggdrop b/roles/viperserv/eggdrop/files/rc/eggdrop
--- a/roles/viperserv/eggdrop/files/rc/eggdrop
+++ b/roles/viperserv/eggdrop/files/rc/eggdrop
@@ -32,6 +32,10 @@
procname="/usr/local/bin/eggdrop"
start_precmd="${name}_prestart"
+extra_commands="reload graceful"
+sig_reload="HUP"
+graceful_cmd="eggdrop_graceful"
+
# Instances logic has been forked from the MySQL port rc service code.
if [ -n "$2" ]; then
instance="$2"
@@ -90,6 +94,14 @@
pidfile=$eggdrop_pidfile
command_args="$eggdrop_conf"
+eggdrop_graceful()
+{
+ if [ -f $pidfile ]; then
+ echo "Gracefully restart eggdrop..."
+ kill -3 `cat $pidfile`
+ fi
+}
+
eggdrop_prestart()
{
if [ ! -f "${eggdrop_basedir}/${eggdrop_name}/user" ]; then

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 06:52 (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263526
Default Alt Text
D1945.diff (784 B)

Event Timeline