diff options
Diffstat (limited to 'eggdrop')
-rwxr-xr-x | eggdrop/init.d/eggdrop | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eggdrop/init.d/eggdrop b/eggdrop/init.d/eggdrop index a4d2157..b33462d 100755 --- a/eggdrop/init.d/eggdrop +++ b/eggdrop/init.d/eggdrop @@ -18,7 +18,7 @@ depend() { checkconfig() { local instance=${RC_SVCNAME#*.} local instanceVar=$(shell_var "${instance}") - + if [ -n "$instanceVar" ]; then eval local_datadir=\$EGGDROP_DATADIR_${instanceVar} @@ -56,9 +56,9 @@ _get_pid_file() { if [ -n "$pid" ]; then echo "${1}/$pid" - else + else local botnet_nick=$(grep "^ *set botnet-nick" "${1}/eggdrop.conf" | cut -d\" -f2) - + if [ -n "${botnet_nick}" ]; then echo "${1}/pid.${botnet_nick}" else |