Lines 23-33
RETVAL=0
Link Here
|
23 |
|
23 |
|
24 |
adjust() |
24 |
adjust() |
25 |
{ |
25 |
{ |
26 |
action "Adjusting enviroment for UnrealIRCD server:" /etc/chroot.d/unreal.all |
26 |
action "Adjusting enviroment for UnrealIRCd server:" /etc/chroot.d/unreal.all |
27 |
RETVAL=$? |
27 |
RETVAL=$? |
28 |
return $RETVAL |
28 |
return $RETVAL |
29 |
} |
29 |
} |
30 |
|
30 |
|
|
|
31 |
rehash() |
32 |
{ |
33 |
if [ -e "$LOCKFILE" ]; then |
34 |
action "Rehashing UnrealIRCd:" kill -1 `cat $UIRCD_ROOT/ircd.pid` |
35 |
fi |
36 |
} |
37 |
|
31 |
start() |
38 |
start() |
32 |
{ |
39 |
{ |
33 |
adjust || return |
40 |
adjust || return |
Lines 41-52
start()
Link Here
|
41 |
|
48 |
|
42 |
mkpasswd() |
49 |
mkpasswd() |
43 |
{ |
50 |
{ |
44 |
/usr/sbin/uircd -P $2 $3 |
51 |
$UIRCD_BIN -P $2 $3 |
45 |
} |
52 |
} |
46 |
|
53 |
|
47 |
stop() |
54 |
stop() |
48 |
{ |
55 |
{ |
49 |
echo -n "Shutting down UnrealIRC server: " |
56 |
echo -n "Shutting down UnrealIRCd server: " |
50 |
stop_daemon --lockfile "$LOCKFILE" -- "$UIRCD_BIN" |
57 |
stop_daemon --lockfile "$LOCKFILE" -- "$UIRCD_BIN" |
51 |
RETVAL=$? |
58 |
RETVAL=$? |
52 |
echo |
59 |
echo |
Lines 62-67
case "$1" in
Link Here
|
62 |
stop) |
69 |
stop) |
63 |
stop |
70 |
stop |
64 |
;; |
71 |
;; |
|
|
72 |
reload) |
73 |
adjust |
74 |
rehash |
75 |
;; |
65 |
rehash) |
76 |
rehash) |
66 |
rehash |
77 |
rehash |
67 |
;; |
78 |
;; |
Lines 91-97
case "$1" in
Link Here
|
91 |
fi |
102 |
fi |
92 |
;; |
103 |
;; |
93 |
*) |
104 |
*) |
94 |
echo "Usage: ${0##*/} {start|stop|restart|rehash|status|adjust|mkpasswd|condstop|condrestart}" |
105 |
echo "Usage: ${0##*/} {start|stop|restart|reload|rehash|status|adjust|mkpasswd|condstop|condrestart}" |
95 |
RETVAL=1 |
106 |
RETVAL=1 |
96 |
esac |
107 |
esac |
97 |
|
108 |
|