From linimon at FreeBSD.org Sat May 2 22:00:12 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Sat May 2 22:00:24 2009 Subject: conf/134006: [patch] Unload console screensaver kernel modules if saver is disabled in rc.conf Message-ID: <200905022200.n42M0Aiw049056@freefall.freebsd.org> Old Synopsis: Unload console screensaver kernel modules if saver is disabled in rc.conf New Synopsis: [patch] Unload console screensaver kernel modules if saver is disabled in rc.conf Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Sat May 2 21:59:34 UTC 2009 Responsible-Changed-Why: patch against rc.conf. http://www.freebsd.org/cgi/query-pr.cgi?pr=134006 From bugmaster at FreeBSD.org Mon May 4 11:08:03 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 4 11:09:43 2009 Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org Message-ID: <200905041108.n44B82pY098824@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132766 rc wait_for_pids() in /etc/rc.subr is dull. o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o conf/122036 rc [rc.d]: Mounting at boot with ZFS causes a halt in boo o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/120228 rc [zfs] [patch] Split ZFS volume startup / ease ZFS swap o conf/120194 rc [patch] UFS volumes on ZVOLs cannot be fsck'd at boot o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 55 problems total. From gavin at FreeBSD.org Thu May 7 14:49:39 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Thu May 7 14:49:45 2009 Subject: conf/134333: PPP configuration problem in the rc.d scripts in combination with bash shell Message-ID: <200905071449.n47EncTP038981@freefall.freebsd.org> Synopsis: PPP configuration problem in the rc.d scripts in combination with bash shell Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: gavin Responsible-Changed-When: Thu May 7 14:46:29 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). Be aware, however, that I'm not sure bash is supported as the default root shell, so other breakages similar to this may also occur. http://www.freebsd.org/cgi/query-pr.cgi?pr=134333 From bugmaster at FreeBSD.org Mon May 11 11:07:04 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 11 11:09:10 2009 Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org Message-ID: <200905111107.n4BB73kY086081@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132766 rc wait_for_pids() in /etc/rc.subr is dull. o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o conf/122036 rc [rc.d]: Mounting at boot with ZFS causes a halt in boo o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/120228 rc [zfs] [patch] Split ZFS volume startup / ease ZFS swap o conf/120194 rc [patch] UFS volumes on ZVOLs cannot be fsck'd at boot o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 56 problems total. From kmacy at FreeBSD.org Sun May 17 05:10:03 2009 From: kmacy at FreeBSD.org (kmacy@FreeBSD.org) Date: Sun May 17 05:10:09 2009 Subject: conf/122036: [rc.d]: Mounting at boot with ZFS causes a halt in booting Message-ID: <200905170510.n4H5A2aJ053454@freefall.freebsd.org> Synopsis: [rc.d]: Mounting at boot with ZFS causes a halt in booting State-Changed-From-To: open->closed State-Changed-By: kmacy State-Changed-When: Sun May 17 05:09:41 UTC 2009 State-Changed-Why: solution was provided http://www.freebsd.org/cgi/query-pr.cgi?pr=122036 From bugmaster at FreeBSD.org Mon May 18 11:07:00 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 18 11:09:18 2009 Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org Message-ID: <200905181106.n4IB6xND075780@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132766 rc wait_for_pids() in /etc/rc.subr is dull. o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/120228 rc [zfs] [patch] Split ZFS volume startup / ease ZFS swap o conf/120194 rc [patch] UFS volumes on ZVOLs cannot be fsck'd at boot o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 55 problems total. From linimon at FreeBSD.org Tue May 19 23:15:59 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Tue May 19 23:16:10 2009 Subject: conf/134660: [patch] rc-script for initializing ng_netflow+ng_ipfw Message-ID: <200905192315.n4JNFwXH065402@freefall.freebsd.org> Old Synopsis: rc-script for initializing ng_netflow+ng_ipfw New Synopsis: [patch] rc-script for initializing ng_netflow+ng_ipfw Responsible-Changed-From-To: freebsd-doc->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Tue May 19 23:14:49 UTC 2009 Responsible-Changed-Why: Perhaps the folks on the rc mailing list can evaluate this. http://www.freebsd.org/cgi/query-pr.cgi?pr=134660 From gavin at FreeBSD.org Sun May 24 19:24:10 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Sun May 24 19:24:21 2009 Subject: conf/134918: rc.subr fails to detect perl daemons Message-ID: <200905241924.n4OJO8qG046418@freefall.freebsd.org> Synopsis: rc.subr fails to detect perl daemons Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: gavin Responsible-Changed-When: Sun May 24 19:23:13 UTC 2009 Responsible-Changed-Why: Over to maintainers http://www.freebsd.org/cgi/query-pr.cgi?pr=134918 From bugmaster at FreeBSD.org Mon May 25 11:07:00 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 25 11:09:17 2009 Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org Message-ID: <200905251106.n4PB6xl2092937@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/134918 rc rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132766 rc wait_for_pids() in /etc/rc.subr is dull. o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/120228 rc [zfs] [patch] Split ZFS volume startup / ease ZFS swap o conf/120194 rc [patch] UFS volumes on ZVOLs cannot be fsck'd at boot o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 57 problems total. From rick at snowhite.cis.uoguelph.ca Thu May 28 22:40:01 2009 From: rick at snowhite.cis.uoguelph.ca (Rick Macklem) Date: Thu May 28 22:40:07 2009 Subject: rc scripts for the new experimental nfs subsystem Message-ID: <200905282047.QAA12312@snowhite.cis.uoguelph.ca> Hi, I've just put the sources and man pages for an experimental alternative to the regular NFS subsystem in FreeBSD-CURRENT. I have some rc scripts that I use to run it, but I'm not much of a shell programmer, so I wondered if someone might be able to review them? Thanks in advance for any help, rick Essentially, if nfsv4_serversupport_enable is yes, the "-e" argument must be added to the argument list for nfsd and mountd, so that they run the experimental server. (The current versions of these functions are the only ones that know "-e" and they also know to load the correct modules, so I don't think the business of running "nfsserver" to get the module loaded is necessary for this case.) It also forces the startup of nfsuserd. nfsuserd is used by both client and server and nfscbd is optionally used by the client, for callback handling. They know to load the correct modules, as required. I've added the following variables to /etc/defaults/rc.conf: nfsv4_serversupport_enable="NO" # Enable support for NFSv4 nfsv4_cbd_enable="NO" # NFSv4 client side callback daemon nfsv4_cbd_flags="" # Flags for nfscbd nfsv4_userd_enable="NO" # NFSv4 user/group name mapping daemon nfsv4_userd_flags="" # Flags for nfsuserd and then there are 2 modified scripts for /etc/rc.d and two new ones. A modified nfsd: #!/bin/sh # # $FreeBSD: src/etc/rc.d/nfsd,v 1.16 2008/11/03 10:38:00 dfr Exp $ # # PROVIDE: nfsd # REQUIRE: mountd hostname gssd # KEYWORD: nojail shutdown . /etc/rc.subr name="nfsd" rcvar=`set_rcvar nfs_server` command="/usr/sbin/${name}" load_rc_config $name start_precmd="nfsd_precmd" sig_stop="USR1" nfsd_precmd() { # If nfsv4_serversupport_enable is yes, force use of the experimental # server # if checkyesno nfsv4_serversupport_enable; then rc_flags="-e ${nfs_server_flags}" else rc_flags="${nfs_server_flags}" fi if checkyesno nfsv4_serversupport_enable; then if ! checkyesno nfsv4_userd_enable && \ ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 then force_depend nfsuserd || return 1 fi elif ! sysctl vfs.nfsrv >/dev/null 2>&1; then force_depend nfsserver || return 1 fi if ! checkyesno rpcbind_enable && \ ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 then force_depend rpcbind || return 1 fi if ! checkyesno mountd_enable && \ ! /etc/rc.d/mountd forcestatus 1>/dev/null 2>&1 then force_depend mountd || return 1 fi if ! checkyesno nfsv4_serversupport_enable && \ checkyesno nfs_reserved_port_only; then echo 'NFS on reserved port only=YES' sysctl vfs.nfsrv.nfs_privport=1 > /dev/null fi return 0 } run_rc_command "$1" A modified mountd: #!/bin/sh # # $FreeBSD: src/etc/rc.d/mountd,v 1.21 2008/07/16 19:50:29 dougb Exp $ # # PROVIDE: mountd # REQUIRE: NETWORKING nfsserver rpcbind quota # KEYWORD: nojail shutdown . /etc/rc.subr name="mountd" rcvar=`set_rcvar` command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" required_files="/etc/exports" start_precmd="mountd_precmd" extra_commands="reload" mountd_precmd() { if ! checkyesno rpcbind_enable && \ ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 then force_depend rpcbind || return 1 fi # mountd flags will differ depending on rc.conf settings # if checkyesno nfs_server_enable ; then if checkyesno weak_mountd_authentication; then rc_flags="${mountd_flags} -n" fi else if checkyesno mountd_enable; then checkyesno weak_mountd_authentication && rc_flags="-n" fi fi # If nfsv4_serversupport_enable is yes, force use of the experimental # server # if checkyesno nfsv4_serversupport_enable; then rc_flags="-e ${rc_flags}" fi if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi rm -f /var/db/mountdtab ( umask 022 ; > /var/db/mountdtab ) return 0 } load_rc_config $name run_rc_command "$1" A new script for the nfsuserd: #!/bin/sh # # $FreeBSD$ # # PROVIDE: nfsuserd # KEYWORD: nojail . /etc/rc.subr name="nfsuserd" rcvar="nfsv4_userd_enable" command="/usr/sbin/${name}" load_rc_config $name command_args="${nfsv4_userd_flags}" sig_stop="USR1" run_rc_command "$1" and a new script for the nfscbd: #!/bin/sh # # $FreeBSD$ # # PROVIDE: nfscbd # KEYWORD: nojail . /etc/rc.subr name="nfscbd" rcvar="nfsv4_cbd_enable" command="/usr/sbin/${name}" load_rc_config $name command_args="${nfsv4_cbd_flags}" sig_stop="USR1" run_rc_command "$1" From nslay at comcast.net Thu May 28 23:41:51 2009 From: nslay at comcast.net (Nathan Lay) Date: Thu May 28 23:41:57 2009 Subject: Profile rc idea Message-ID: <4A1F1DA3.8010005@comcast.net> Hi list, It would be interesting if rc was extended to support profiles. Each profile would reflect a different system configuration. For example profiles could describe the computing environment at: home, work, friend's house, airplane, etc... The active profile the system uses could be chosen based on some contingency condition. For example, simply prompting the user to choose an rc profile at boot, or using hardware to choose the profile (e.g. like location based contingency using GPS hardware), or whatever... I guess this only pertains to booting though, but rc seems like a natural place to do this. Thoughts, comments? Yet another idea I have no time to try... Best Regards, Nathan Lay From dougb at FreeBSD.org Fri May 29 04:37:16 2009 From: dougb at FreeBSD.org (Doug Barton) Date: Fri May 29 04:37:22 2009 Subject: Profile rc idea In-Reply-To: <4A1F1DA3.8010005@comcast.net> References: <4A1F1DA3.8010005@comcast.net> Message-ID: <4A1F603A.9080400@FreeBSD.org> Sounds great, we look forward to reviewing your patches. :) Seriously, lots of people have proposed this, no one has come up with a serious implementation yet. Depending on what variables you want to set a very simple implementation could be a script that prompts the user with a menu to choose their location and sets the variables accordingly. That script could be set to run first using the existing rc.d system. Doug Nathan Lay wrote: > Hi list, > It would be interesting if rc was extended to support profiles. Each > profile would reflect a different system configuration. For example > profiles could describe the computing environment at: home, work, > friend's house, airplane, etc... The active profile the system uses > could be chosen based on some contingency condition. For example, > simply prompting the user to choose an rc profile at boot, or using > hardware to choose the profile (e.g. like location based contingency > using GPS hardware), or whatever... I guess this only pertains to > booting though, but rc seems like a natural place to do this. Thoughts, > comments? Yet another idea I have no time to try... > > Best Regards, > Nathan Lay > > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" > From dougb at FreeBSD.org Fri May 29 05:01:46 2009 From: dougb at FreeBSD.org (Doug Barton) Date: Fri May 29 05:01:53 2009 Subject: rc scripts for the new experimental nfs subsystem In-Reply-To: <200905282047.QAA12312@snowhite.cis.uoguelph.ca> References: <200905282047.QAA12312@snowhite.cis.uoguelph.ca> Message-ID: <4A1F654F.6000509@FreeBSD.org> Overall this looks good, I've made a few comments in line based on a cursory inspection. Please review http://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/ as well. hth, Doug Rick Macklem wrote: > Hi, > > I've just put the sources and man pages for an experimental alternative > to the regular NFS subsystem in FreeBSD-CURRENT. I have some rc scripts > that I use to run it, but I'm not much of a shell programmer, so I > wondered if someone might be able to review them? > > Thanks in advance for any help, rick > > Essentially, if nfsv4_serversupport_enable Can we shorten the middle part of that? Not a requirement, but it's a bit long. > is yes, the "-e" argument must > be added to the argument list for nfsd and mountd, so that they run the > experimental server. (The current versions of these functions are the only > ones that know "-e" and they also know to load the correct modules, so I > don't think the business of running "nfsserver" to get the module loaded > is necessary for this case.) It also forces the startup of nfsuserd. > > nfsuserd is used by both client and server and nfscbd is optionally used > by the client, for callback handling. They know to load the correct modules, > as required. > > I've added the following variables to /etc/defaults/rc.conf: > nfsv4_serversupport_enable="NO" # Enable support for NFSv4 > nfsv4_cbd_enable="NO" # NFSv4 client side callback daemon > nfsv4_cbd_flags="" # Flags for nfscbd > nfsv4_userd_enable="NO" # NFSv4 user/group name mapping daemon > nfsv4_userd_flags="" # Flags for nfsuserd > > and then there are 2 modified scripts for /etc/rc.d Can you provide a unified diff? That's easier to review (at least for me). > and two new ones. > A modified nfsd: > #!/bin/sh > # > # $FreeBSD: src/etc/rc.d/nfsd,v 1.16 2008/11/03 10:38:00 dfr Exp $ > # > > # PROVIDE: nfsd > # REQUIRE: mountd hostname gssd > # KEYWORD: nojail shutdown > > . /etc/rc.subr > > name="nfsd" > rcvar=`set_rcvar nfs_server` > command="/usr/sbin/${name}" > > load_rc_config $name > start_precmd="nfsd_precmd" > sig_stop="USR1" > > nfsd_precmd() > { > # If nfsv4_serversupport_enable is yes, force use of the experimental > # server > # > if checkyesno nfsv4_serversupport_enable; then > rc_flags="-e ${nfs_server_flags}" > else > rc_flags="${nfs_server_flags}" > fi > > if checkyesno nfsv4_serversupport_enable; then > if ! checkyesno nfsv4_userd_enable && \ > ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 > then > force_depend nfsuserd || return 1 > fi > elif ! sysctl vfs.nfsrv >/dev/null 2>&1; then > force_depend nfsserver || return 1 > fi > > if ! checkyesno rpcbind_enable && \ > ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 > then > force_depend rpcbind || return 1 > fi > > if ! checkyesno mountd_enable && \ > ! /etc/rc.d/mountd forcestatus 1>/dev/null 2>&1 > then > force_depend mountd || return 1 > fi > > if ! checkyesno nfsv4_serversupport_enable && \ > checkyesno nfs_reserved_port_only; then > echo 'NFS on reserved port only=YES' > sysctl vfs.nfsrv.nfs_privport=1 > /dev/null > fi > return 0 > } > > run_rc_command "$1" > > A modified mountd: > #!/bin/sh > # > # $FreeBSD: src/etc/rc.d/mountd,v 1.21 2008/07/16 19:50:29 dougb Exp $ > # > > # PROVIDE: mountd > # REQUIRE: NETWORKING nfsserver rpcbind quota > # KEYWORD: nojail shutdown > > . /etc/rc.subr > > name="mountd" > rcvar=`set_rcvar` > command="/usr/sbin/${name}" > pidfile="/var/run/${name}.pid" > required_files="/etc/exports" > start_precmd="mountd_precmd" > extra_commands="reload" > > mountd_precmd() > { > if ! checkyesno rpcbind_enable && \ > ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 > then > force_depend rpcbind || return 1 > fi > > # mountd flags will differ depending on rc.conf settings > # > if checkyesno nfs_server_enable ; then > if checkyesno weak_mountd_authentication; then > rc_flags="${mountd_flags} -n" > fi > else > if checkyesno mountd_enable; then > checkyesno weak_mountd_authentication && rc_flags="-n" > fi > fi > > # If nfsv4_serversupport_enable is yes, force use of the experimental > # server > # > if checkyesno nfsv4_serversupport_enable; then > rc_flags="-e ${rc_flags}" > fi > > if checkyesno zfs_enable; then > rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" > fi > > rm -f /var/db/mountdtab > ( umask 022 ; > /var/db/mountdtab ) > return 0 > } > > load_rc_config $name > run_rc_command "$1" > > A new script for the nfsuserd: > #!/bin/sh > # > # $FreeBSD$ > # > > # PROVIDE: nfsuserd > # KEYWORD: nojail Since this seems to start a service, the shutdown KEYWORD is needed. Same thing with the script below as well. > . /etc/rc.subr > > name="nfsuserd" > rcvar="nfsv4_userd_enable" > command="/usr/sbin/${name}" > > load_rc_config $name > command_args="${nfsv4_userd_flags}" This defeats how command_args is supposed to work. I'm not sure off hand what's the best solution here though. In general it reduces confusion if you set $name, the name of the script file, and the PROVIDE line all to the same thing. What's your long term plan for this? Will the variables in rc.conf eventually be renamed nfsuserd_*? > sig_stop="USR1" > > run_rc_command "$1" > > and a new script for the nfscbd: > #!/bin/sh > # > # $FreeBSD$ > # > > # PROVIDE: nfscbd > # KEYWORD: nojail > > . /etc/rc.subr > > name="nfscbd" > rcvar="nfsv4_cbd_enable" > command="/usr/sbin/${name}" > > load_rc_config $name > command_args="${nfsv4_cbd_flags}" > sig_stop="USR1" > > run_rc_command "$1" > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" > From yvesguerin at yahoo.ca Fri May 29 13:46:25 2009 From: yvesguerin at yahoo.ca (=?iso-8859-1?Q?Yves_Gu=E9rin?=) Date: Fri May 29 13:47:00 2009 Subject: Fw : Re : Profile rc idea Message-ID: <302139.58064.qm@web56408.mail.re3.yahoo.com> Hello, I forgot to cc to the list, sorry. Yves Guerin --- En date de : Ven 29.5.09, Yves Gu?rin a ?crit : De: Yves Gu?rin Objet: Re : Profile rc idea ?: "Nathan Lay" Date: Vendredi 29 Mai 2009, 7h14 Dear Sir, I did something similar to your idea, I custom the boot menu (beastie.4th) to choose between home, office, dhcp and default configuration for my network interface on my laptop. I grab the answer or the choice via the kenv system call, and on my rc directory I start my own script just before netif to configure my network depending on the answer I choose at boot time. So I think the idea can be modify for every used that you can dream of. I am able to send you my configuration, the boot menu and the rc file. Regards, Yves Guerin --- En date de?: Ven 29.5.09, Nathan Lay a ?crit?: De: Nathan Lay Objet: Profile rc idea ?: freebsd-rc@freebsd.org Date: Vendredi 29 Mai 2009, 4h26 Hi list, It would be interesting if rc was extended to support profiles.? Each profile would reflect a different system configuration.? For example profiles could describe the computing environment at: home, work, friend's house, airplane, etc... The active profile the system uses could be chosen based on some contingency condition.? For example, simply prompting the user to choose an rc profile at boot, or using hardware to choose the profile (e.g. like location based contingency using GPS hardware), or whatever...? I guess this only pertains to booting though, but rc seems like a natural place to do this.? Thoughts, comments?? Yet another idea I have no time to try... Best Regards, Nathan Lay _______________________________________________ freebsd-rc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-rc To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" From rick at snowhite.cis.uoguelph.ca Fri May 29 16:53:04 2009 From: rick at snowhite.cis.uoguelph.ca (Rick Macklem) Date: Fri May 29 16:53:13 2009 Subject: rc scripts for the new experimental nfs subsystem Message-ID: <200905291652.MAA15699@snowhite.cis.uoguelph.ca> > cursory inspection. Please review > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/ as well. Thanks. Very helpful. Ok, I've shortened nfsv4_serversupport_enable to nfsv4_server_enable and changed the names of the others to follow the FreeBSD tradition (now that I know about it:-). I also made the new scripts follow the traditions, I think? (I also simplified the if in nfsd, since I thought that's what you meant by "shorten" the first time I read the email. I think it's more readable this way, anyhow.) The "REQUIRE: NETWORKING" is debatable for nfsuserd, since it doesn't use networking itself. However, it calls functions like getpwent(), which usually use LDAP, NIS,... these days. Also, it's used by NFS, which is useless without networking, so I thought it made sense? Thanks for helping out, rick Here's a diff -u: --- rc.conf.sav 2009-05-29 11:27:49.000000000 -0400 +++ rc.conf 2009-05-29 11:27:17.000000000 -0400 @@ -311,6 +311,11 @@ rpc_ypupdated_enable="NO" # Run if NIS master and SecureRPC (or NO). keyserv_enable="NO" # Run the SecureRPC keyserver (or NO). keyserv_flags="" # Flags to keyserv (if enabled). +nfsv4_server_enable="NO" # Enable support for NFSv4 +nfscbd_enable="NO" # NFSv4 client side callback daemon +nfscbd_flags="" # Flags for nfscbd +nfsuserd_enable="NO" # NFSv4 user/group name mapping daemon +nfsuserd_flags="" # Flags for nfsuserd ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). diff -u -N -r rc.d.sav/mountd rc.d/mountd --- rc.d.sav/mountd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/mountd 2009-05-29 11:55:38.000000000 -0400 @@ -37,6 +37,13 @@ fi fi + # If nfsv4_server_enable is yes, force use of the experimental + # server + # + if checkyesno nfsv4_server_enable; then + rc_flags="-e ${rc_flags}" + fi + if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi diff -u -N -r rc.d.sav/nfscbd rc.d/nfscbd --- rc.d.sav/nfscbd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfscbd 2009-05-29 11:55:38.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfscbd +# REQUIRE: NETWORKING +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfscbd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" + +load_rc_config $name +sig_stop="USR1" + +run_rc_command "$1" diff -u -N -r rc.d.sav/nfsd rc.d/nfsd --- rc.d.sav/nfsd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/nfsd 2009-05-29 11:55:38.000000000 -0400 @@ -14,13 +14,30 @@ command="/usr/sbin/${name}" load_rc_config $name -command_args="${nfs_server_flags}" start_precmd="nfsd_precmd" sig_stop="USR1" nfsd_precmd() { - if ! sysctl vfs.nfsrv >/dev/null 2>&1; then + # If nfsv4_server_enable is yes, force use of the experimental + # server + # + if checkyesno nfsv4_server_enable; then + rc_flags="-e ${nfs_server_flags}" + else + rc_flags="${nfs_server_flags}" + fi + + if checkyesno nfsv4_server_enable; then + if ! checkyesno nfsuserd_enable && \ + ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 + then + force_depend nfsuserd || return 1 + fi + fi + + if ! checkyesno nfsv4_server_enable && \ + ! sysctl vfs.nfsrv >/dev/null 2>&1; then force_depend nfsserver || return 1 fi @@ -36,7 +53,8 @@ force_depend mountd || return 1 fi - if checkyesno nfs_reserved_port_only; then + if ! checkyesno nfsv4_server_enable && \ + checkyesno nfs_reserved_port_only; then echo 'NFS on reserved port only=YES' sysctl vfs.nfsrv.nfs_privport=1 > /dev/null fi diff -u -N -r rc.d.sav/nfsuserd rc.d/nfsuserd --- rc.d.sav/nfsuserd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfsuserd 2009-05-29 11:55:38.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfsuserd +# REQUIRE: NETWORKING +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfsuserd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" + +load_rc_config $name +sig_stop="USR1" + +run_rc_command "$1" From dougb at FreeBSD.org Fri May 29 19:19:18 2009 From: dougb at FreeBSD.org (Doug Barton) Date: Fri May 29 19:19:24 2009 Subject: Profile rc idea In-Reply-To: <302139.58064.qm@web56408.mail.re3.yahoo.com> References: <302139.58064.qm@web56408.mail.re3.yahoo.com> Message-ID: <4A203531.8020107@FreeBSD.org> Yves Gu?rin wrote: > I did something similar to your idea, I custom the boot menu (beastie.4th) to choose between home, office, dhcp and default configuration for my network interface on my laptop. > I grab the answer or the choice via the kenv system call, and on my rc directory I start my own script just before netif to configure my network depending on the answer I choose at boot time. So I think the idea can be modify for every used that you can dream of. > > I am able to send you my configuration, the boot menu and the rc file. I really like the idea of leveraging the existing boot menu for this. Can you send your patches to the list? Doug From dougb at FreeBSD.org Sat May 30 19:17:30 2009 From: dougb at FreeBSD.org (Doug Barton) Date: Sat May 30 19:17:37 2009 Subject: rc scripts for the new experimental nfs subsystem In-Reply-To: <200905291652.MAA15699@snowhite.cis.uoguelph.ca> References: <200905291652.MAA15699@snowhite.cis.uoguelph.ca> Message-ID: <4A21863D.8040904@FreeBSD.org> Rick Macklem wrote: >> cursory inspection. Please review >> http://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/ as well. > > Thanks. Very helpful. GTH. > Ok, I've shortened nfsv4_serversupport_enable to nfsv4_server_enable and > changed the names of the others to follow the FreeBSD tradition (now that > I know about it:-). Well, that's what review is for, right? :) > I also made the new scripts follow the traditions, I > think? (I also simplified the if in nfsd, since I thought that's what > you meant by "shorten" the first time I read the email. I think it's more > readable this way, anyhow.) > > The "REQUIRE: NETWORKING" is debatable for nfsuserd, since it doesn't > use networking itself. However, it calls functions like getpwent(), which > usually use LDAP, NIS,... these days. Also, it's used by NFS, which is > useless without networking, so I thought it made sense? It sounds like what you really want to do is have nfsd REQUIRE nfsuserd. I'll only comment on a few things, the rest looks good. > diff -u -N -r rc.d.sav/nfscbd rc.d/nfscbd > --- rc.d.sav/nfscbd 1969-12-31 19:00:00.000000000 -0500 > +++ rc.d/nfscbd 2009-05-29 11:55:38.000000000 -0400 > @@ -0,0 +1,19 @@ > +#!/bin/sh > +# > +# $FreeBSD$ > +# > + > +# PROVIDE: nfscbd > +# REQUIRE: NETWORKING > +# KEYWORD: nojail shutdown > + > +. /etc/rc.subr > + > +name="nfscbd" > +rcvar=`set_rcvar` > +command="/usr/sbin/${name}" > + > +load_rc_config $name > +sig_stop="USR1" For consistency sake sig_stop should really be moved up between command and load_rc_config, but this is just cosmetic. > diff -u -N -r rc.d.sav/nfsd rc.d/nfsd I'm not sure why you added so many tests for the new variable. I've attached a streamlined version of your patch which I think will accomplish the same things. > diff -u -N -r rc.d.sav/nfsuserd rc.d/nfsuserd > --- rc.d.sav/nfsuserd 1969-12-31 19:00:00.000000000 -0500 > +++ rc.d/nfsuserd 2009-05-29 11:55:38.000000000 -0400 > @@ -0,0 +1,19 @@ > +#!/bin/sh > +# > +# $FreeBSD$ > +# > + > +# PROVIDE: nfsuserd > +# REQUIRE: NETWORKING > +# KEYWORD: nojail shutdown > + > +. /etc/rc.subr > + > +name="nfsuserd" > +rcvar=`set_rcvar` > +command="/usr/sbin/${name}" > + > +load_rc_config $name > +sig_stop="USR1" Same here with sig_stop. hope this helps, Doug -- This .signature sanitized for your protection -------------- next part -------------- Index: nfsd =================================================================== --- nfsd (revision 192991) +++ nfsd (working copy) @@ -14,14 +14,33 @@ command="/usr/sbin/${name}" load_rc_config $name -command_args="${nfs_server_flags}" start_precmd="nfsd_precmd" sig_stop="USR1" nfsd_precmd() { - if ! sysctl vfs.nfsrv >/dev/null 2>&1; then - force_depend nfsserver || return 1 + if checkyesno nfsv4_server_enable; then + # If nfsv4_server_enable is yes, force use + # of the experimental server + # + rc_flags="-e ${nfs_server_flags}" + + if ! checkyesno nfsuserd_enable && \ + ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 + then + force_depend nfsuserd || return 1 + fi + else + rc_flags="${nfs_server_flags}" + + if ! sysctl vfs.nfsrv >/dev/null 2>&1; then + force_depend nfsserver || return 1 + fi + + if checkyesno nfs_reserved_port_only; then + echo 'NFS on reserved port only=YES' + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null + fi fi if ! checkyesno rpcbind_enable && \ @@ -35,11 +54,6 @@ then force_depend mountd || return 1 fi - - if checkyesno nfs_reserved_port_only; then - echo 'NFS on reserved port only=YES' - sysctl vfs.nfsrv.nfs_privport=1 > /dev/null - fi return 0 } From dougb at dougbarton.us Sat May 30 21:55:06 2009 From: dougb at dougbarton.us (Doug Barton) Date: Sat May 30 21:55:13 2009 Subject: Removal of deprecation for network_interfaces != AUTO Message-ID: <4A21A4F6.5060709@dougbarton.us> Without objection I plan to commit the attached patch before the code slush, and to MFC the change. I've never seen the rationale for this, and I use a value other than AUTO personally for a script I have that tests to see if the wired interface is up and starts the wireless if not. I've also seen other users ask about this from time to time, so I'm sure I'm not alone. Doug -------------- next part -------------- Index: network.subr =================================================================== --- network.subr (revision 193111) +++ network.subr (working copy) @@ -726,10 +726,6 @@ _tmplist="${_lo}${_tmplist}" ;; *) - if [ -z "$type" ]; then - warn "Values of network_interfaces other than" \ - "AUTO are deprecated" - fi _tmplist="${network_interfaces} ${cloned_interfaces}" ;; esac From rick at snowhite.cis.uoguelph.ca Sun May 31 18:21:52 2009 From: rick at snowhite.cis.uoguelph.ca (Rick Macklem) Date: Sun May 31 18:21:59 2009 Subject: rc scripts for the new experimental nfs subsystem Message-ID: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> [good stuff snipped] > It sounds like what you really want to do is have nfsd REQUIRE nfsuserd. > > I'll only comment on a few things, the rest looks good. Thanks a lot for the review. I've used your version of nfsd, which I think is more readable and moved the sig_stop lines up like you suggested. I've added nfsuserd to the REQUIRE: line in nfsd and also in nfscbd. So, I think it's ready for a commit. (I've attached the diff again, just in case you want to take another look.) Thanks again, rick --- diff -u of rc scripts --- diff -u -r -N rc.d.sav/mountd rc.d/mountd --- rc.d.sav/mountd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/mountd 2009-05-30 20:25:04.000000000 -0400 @@ -37,6 +37,13 @@ fi fi + # If nfsv4_server_enable is yes, force use of the experimental + # server + # + if checkyesno nfsv4_server_enable; then + rc_flags="-e ${rc_flags}" + fi + if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi diff -u -r -N rc.d.sav/nfscbd rc.d/nfscbd --- rc.d.sav/nfscbd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfscbd 2009-05-31 14:01:20.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfscbd +# REQUIRE: NETWORKING nfsuserd +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfscbd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" +sig_stop="USR1" + +load_rc_config $name + +run_rc_command "$1" diff -u -r -N rc.d.sav/nfsd rc.d/nfsd --- rc.d.sav/nfsd 2009-05-28 14:59:22.000000000 -0400 +++ rc.d/nfsd 2009-05-30 20:31:23.000000000 -0400 @@ -4,7 +4,7 @@ # # PROVIDE: nfsd -# REQUIRE: mountd hostname gssd +# REQUIRE: mountd hostname gssd nfsuserd # KEYWORD: nojail shutdown . /etc/rc.subr @@ -14,14 +14,33 @@ command="/usr/sbin/${name}" load_rc_config $name -command_args="${nfs_server_flags}" start_precmd="nfsd_precmd" sig_stop="USR1" nfsd_precmd() { - if ! sysctl vfs.nfsrv >/dev/null 2>&1; then - force_depend nfsserver || return 1 + if checkyesno nfsv4_server_enable; then + # If nfsv4_server_enable is yes, force use + # of the experimental server + # + rc_flags="-e ${nfs_server_flags}" + + if ! checkyesno nfsuserd_enable && \ + ! /etc/rc.d/nfsuserd forcestatus 1>/dev/null 2>&1 + then + force_depend nfsuserd || return 1 + fi + else + rc_flags="${nfs_server_flags}" + + if ! sysctl vfs.nfsrv >/dev/null 2>&1; then + force_depend nfsserver || return 1 + fi + + if checkyesno nfs_reserved_port_only; then + echo 'NFS on reserved port only=YES' + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null + fi fi if ! checkyesno rpcbind_enable && \ @@ -35,11 +54,6 @@ then force_depend mountd || return 1 fi - - if checkyesno nfs_reserved_port_only; then - echo 'NFS on reserved port only=YES' - sysctl vfs.nfsrv.nfs_privport=1 > /dev/null - fi return 0 } diff -u -r -N rc.d.sav/nfsuserd rc.d/nfsuserd --- rc.d.sav/nfsuserd 1969-12-31 19:00:00.000000000 -0500 +++ rc.d/nfsuserd 2009-05-30 20:32:45.000000000 -0400 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: nfsuserd +# REQUIRE: NETWORKING +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="nfsuserd" +rcvar=`set_rcvar` +command="/usr/sbin/${name}" +sig_stop="USR1" + +load_rc_config $name + +run_rc_command "$1" diff -u -r -N rc.d.sav/rc.conf rc.d/rc.conf --- rc.d.sav/rc.conf 2009-05-31 14:13:38.000000000 -0400 +++ rc.d/rc.conf 2009-05-31 14:12:46.000000000 -0400 @@ -311,6 +311,11 @@ rpc_ypupdated_enable="NO" # Run if NIS master and SecureRPC (or NO). keyserv_enable="NO" # Run the SecureRPC keyserver (or NO). keyserv_flags="" # Flags to keyserv (if enabled). +nfsv4_server_enable="NO" # Enable support for NFSv4 +nfscbd_enable="NO" # NFSv4 client side callback daemon +nfscbd_flags="" # Flags for nfscbd +nfsuserd_enable="NO" # NFSv4 user/group name mapping daemon +nfsuserd_flags="" # Flags for nfsuserd ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). From dougb at FreeBSD.org Sun May 31 18:34:29 2009 From: dougb at FreeBSD.org (Doug Barton) Date: Sun May 31 18:34:46 2009 Subject: rc scripts for the new experimental nfs subsystem In-Reply-To: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> References: <200905311821.OAA47980@snowhite.cis.uoguelph.ca> Message-ID: <4A22CDAF.6050506@FreeBSD.org> Rick Macklem wrote: > [good stuff snipped] >> It sounds like what you really want to do is have nfsd REQUIRE nfsuserd. >> >> I'll only comment on a few things, the rest looks good. > > Thanks a lot for the review. I've used your version of nfsd, which I think > is more readable and moved the sig_stop lines up like you suggested. I've > added nfsuserd to the REQUIRE: line in nfsd and also in nfscbd. Looks good to me. Thanks for taking the time to get this right before committing it. :) Doug -- This .signature sanitized for your protection From marck at rinet.ru Sun May 31 20:04:22 2009 From: marck at rinet.ru (Dmitry Morozovsky) Date: Sun May 31 20:04:29 2009 Subject: svn commit: r193112 - head/etc/rc.d In-Reply-To: <4A22CFA1.3050408@FreeBSD.org> References: <200905301938.n4UJcpbF017191@svn.freebsd.org> <4A22CFA1.3050408@FreeBSD.org> Message-ID: On Sun, 31 May 2009, Doug Barton wrote: DB> Dmitry Morozovsky wrote: DB> > Doug, DB> > DB> > On Sat, 30 May 2009, Doug Barton wrote: DB> > DB> > DB> Author: dougb DB> > DB> Date: Sat May 30 19:38:51 2009 DB> > DB> New Revision: 193112 DB> > DB> URL: http://svn.freebsd.org/changeset/base/193112 DB> > DB> DB> > DB> Log: DB> > DB> As previously advertised, remove this script prior to the 8.0 branch. DB> > DB> > Was there an agreement what should one do with dumping to gmirror (see DB> > sbin/geom/class/mirror/gmirror.8) ? DB> DB> I'm not familiar with that issue, but it sounds like something that DB> needs its own rc.d script. If someone who knows what is supposed to DB> happen wants to write something up and send it to the freebsd-rc@ list DB> I'll be glad to help review it. Something like (checks should be added, yeah) #!/bin/sh # # $FreeBSD$ # # BEFORE: savecore # PROVIDE: gmirror-savecore # KEYWORD: nojail . /etc/rc.subr name="gmirror_savecore" start_cmd="gmsavecore_start" stop_cmd=":" gmsavecore_start() { gmirror configure -b prefer /dev/dumpdev } load_rc_config $name run_rc_command "$1" possibly? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------