Current Path : /etc/rc.d/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //etc/rc.d/mountd |
#!/bin/sh # # $FreeBSD: release/9.1.0/etc/rc.d/mountd 231792 2012-02-15 22:59:15Z dougb $ # # PROVIDE: mountd # REQUIRE: NETWORKING rpcbind quota # KEYWORD: nojail shutdown . /etc/rc.subr name="mountd" rcvar="mountd_enable" command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" required_files="/etc/exports" start_precmd="mountd_precmd" extra_commands="reload" mountd_precmd() { force_depend rpcbind || return 1 # 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 oldnfs_server_enable is yes, force use of the old NFS server # if checkyesno oldnfs_server_enable; then rc_flags="-o ${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 ) || err 1 'Cannot create /var/db/mountdtab' } load_rc_config $name run_rc_command "$1"