Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 278695 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 278695