Catch up with renaming of macros IRQn -> ICU_IRQn in i386/icu/icu.h,1.7
[dragonfly.git] / etc / rc.d / nfsserver
blobfc072b868cb70a645565c80c0814ba2645156aac
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/nfsserver,v 1.2 2002/10/12 10:31:31 schweikh Exp $
4 # $DragonFly: src/etc/rc.d/nfsserver,v 1.3 2004/01/27 00:42:45 rob Exp $
7 # PROVIDE: nfsserver
8 # REQUIRE: NETWORKING mountcritremote
9 # KEYWORD: DragonFly
11 . /etc/rc.subr
13 name="nfsserver"
14 rcvar="nfs_server_enable"
15 start_cmd="nfsserver_start"
16 stop_cmd=":"
18 # Load nfs modules if they were not compiled into the kernel
19 nfsserver_start()
21 if ! sysctl vfs.nfs >/dev/null 2>&1; then
22 if ! kldload nfs; then
23 warn 'Could not load NFS module'
24 return 1
27 return 0
30 load_rc_config $name
31 run_rc_command "$1"