Lines 61-66
start_mountd()
Link Here
|
61 |
start_daemon --no-announce -- $MOUNTD $MOUNTD_OPTIONS |
61 |
start_daemon --no-announce -- $MOUNTD $MOUNTD_OPTIONS |
62 |
} |
62 |
} |
63 |
|
63 |
|
|
|
64 |
start_rquotad() |
65 |
{ |
66 |
[ -x "$RQUOTAD" ] || return 0 |
67 |
msg_starting $"NFS quotas" |
68 |
start_daemon --no-announce -- $RQUOTAD |
69 |
} |
70 |
|
64 |
start_svcgssd() |
71 |
start_svcgssd() |
65 |
{ |
72 |
{ |
66 |
[ -d /sys/class ] || return 0 |
73 |
[ -d /sys/class ] || return 0 |
Lines 96-101
stop_mountd()
Link Here
|
96 |
stop_daemon --no-announce -- $MOUNTD |
103 |
stop_daemon --no-announce -- $MOUNTD |
97 |
} |
104 |
} |
98 |
|
105 |
|
|
|
106 |
stop_rquotad() |
107 |
{ |
108 |
[ -x "$RQUOTAD" ] || return 0 |
109 |
msg_stopping $"NFS quotas" |
110 |
stop_daemon --no-announce -- $RQUOTAD |
111 |
} |
112 |
|
99 |
stop_svcgssd() |
113 |
stop_svcgssd() |
100 |
{ |
114 |
{ |
101 |
[ -d /sys/class ] || return 0 |
115 |
[ -d /sys/class ] || return 0 |
Lines 120-127
start()
Link Here
|
120 |
action $"Exporting NFS file systems:" $EXPORTFS -r |
134 |
action $"Exporting NFS file systems:" $EXPORTFS -r |
121 |
|
135 |
|
122 |
# rquotad |
136 |
# rquotad |
123 |
msg_starting $"NFS quotas" |
137 |
start_rquotad |
124 |
start_daemon --no-announce -- $RQUOTAD |
|
|
125 |
RETVAL=$? |
138 |
RETVAL=$? |
126 |
[ $RETVAL -eq 0 ] || return |
139 |
[ $RETVAL -eq 0 ] || return |
127 |
|
140 |
|
Lines 156-163
stop()
Link Here
|
156 |
stop_svcgssd |
169 |
stop_svcgssd |
157 |
|
170 |
|
158 |
# rquotad |
171 |
# rquotad |
159 |
msg_stopping $"NFS quotas" |
172 |
stop_rquotad |
160 |
stop_daemon --no-announce -- $RQUOTAD |
|
|
161 |
|
173 |
|
162 |
# Do it the last so that clients can still access the server |
174 |
# Do it the last so that clients can still access the server |
163 |
# when the server is running. |
175 |
# when the server is running. |
Lines 184-190
reload()
Link Here
|
184 |
statuses() |
196 |
statuses() |
185 |
{ |
197 |
{ |
186 |
status $MOUNTD |
198 |
status $MOUNTD |
187 |
status $RQUOTAD |
199 |
[ -x "$RQUOTAD" ] && status $RQUOTAD |
188 |
status $SVCGSSD |
200 |
status $SVCGSSD |
189 |
# FIXME better way ? |
201 |
# FIXME better way ? |
190 |
start-stop-daemon -Ktq -n nfsd > /dev/null && echo nfsd is running || echo nfsd is stopped |
202 |
start-stop-daemon -Ktq -n nfsd > /dev/null && echo nfsd is running || echo nfsd is stopped |