Lines 10-15
Link Here
|
10 |
. /etc/default/$name |
10 |
. /etc/default/$name |
11 |
elif [ -f $CTDB_BASE/sysconfig/$name ]; then |
11 |
elif [ -f $CTDB_BASE/sysconfig/$name ]; then |
12 |
. $CTDB_BASE/sysconfig/$name |
12 |
. $CTDB_BASE/sysconfig/$name |
|
|
13 |
elif [ -f /etc/config.d/$name ]; then |
14 |
. /etc/config.d/$name |
13 |
fi |
15 |
fi |
14 |
} |
16 |
} |
15 |
|
17 |
|
Lines 21-26
Link Here
|
21 |
|
23 |
|
22 |
if [ -x /sbin/startproc ]; then |
24 |
if [ -x /sbin/startproc ]; then |
23 |
CTDB_INIT_STYLE="suse" |
25 |
CTDB_INIT_STYLE="suse" |
|
|
26 |
elif [ -x /bin/rc-status ]; then |
27 |
CTDB_INIT_STYLE="gentoo" |
24 |
elif [ -x /sbin/start-stop-daemon ]; then |
28 |
elif [ -x /sbin/start-stop-daemon ]; then |
25 |
CTDB_INIT_STYLE="ubuntu" |
29 |
CTDB_INIT_STYLE="ubuntu" |
26 |
else |
30 |
else |
Lines 400-405
Link Here
|
400 |
[ -x /etc/init.d/nfslock ] && { |
404 |
[ -x /etc/init.d/nfslock ] && { |
401 |
PLATFORM="rhel" |
405 |
PLATFORM="rhel" |
402 |
} |
406 |
} |
|
|
407 |
[ -x etc/init.d/nfs ] && { |
408 |
PLATFORM="gentoo" |
409 |
} |
403 |
|
410 |
|
404 |
case $PLATFORM in |
411 |
case $PLATFORM in |
405 |
sles) |
412 |
sles) |
Lines 424-429
Link Here
|
424 |
;; |
431 |
;; |
425 |
esac |
432 |
esac |
426 |
;; |
433 |
;; |
|
|
434 |
gentoo) |
435 |
case $1 in |
436 |
start) |
437 |
service nfs start |
438 |
;; |
439 |
stop) |
440 |
service nfs stop > /dev/null 2>&1 |
441 |
;; |
442 |
esac |
443 |
;; |
427 |
*) |
444 |
*) |
428 |
echo "Unknown platform. NFS is not supported with ctdb" |
445 |
echo "Unknown platform. NFS is not supported with ctdb" |
429 |
exit 1 |
446 |
exit 1 |
Lines 442-447
Link Here
|
442 |
[ -x /etc/init.d/nfslock ] && { |
459 |
[ -x /etc/init.d/nfslock ] && { |
443 |
PLATFORM="rhel" |
460 |
PLATFORM="rhel" |
444 |
} |
461 |
} |
|
|
462 |
[ -x etc/init.d/nfs ] && { |
463 |
PLATFORM="gentoo" |
464 |
} |
445 |
|
465 |
|
446 |
case $PLATFORM in |
466 |
case $PLATFORM in |
447 |
sles) |
467 |
sles) |
Lines 466-471
Link Here
|
466 |
;; |
486 |
;; |
467 |
esac |
487 |
esac |
468 |
;; |
488 |
;; |
|
|
489 |
gentoo) |
490 |
# for gentoo there is no service for lockmanager |
491 |
# so we instead just shutdown/restart nfs |
492 |
case $1 in |
493 |
start) |
494 |
service nfs start |
495 |
;; |
496 |
stop) |
497 |
service nfs stop > /dev/null 2>&1 |
498 |
;; |
499 |
esac |
500 |
;; |
469 |
*) |
501 |
*) |
470 |
echo "Unknown platform. NFS locking is not supported with ctdb" |
502 |
echo "Unknown platform. NFS locking is not supported with ctdb" |
471 |
exit 1 |
503 |
exit 1 |