Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3782886
D1945.id4920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
784 B
Referenced Files
None
Subscribers
None
D1945.id4920.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 01:37 (18 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263526
Default Alt Text
D1945.id4920.diff (784 B)
Attached To
Mode
D1945: Provide reload and graceful commands to eggdrop service
Attached
Detach File
Event Timeline
Log In to Comment