tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Configurable list of rc directories



On Aug 25,  6:40pm, Joerg Sonnenberger wrote:
} 
} the attached patch adds rc_directories to specify what directories to
} look in for rc scripts. It defaults to /etc/rc.d, but can be overriden
} to separate e.g. pkgsrc rc scripts from base scripts. It does not change
} the fact that all rc scripts must be on the root filesystem.
} 
} Comments? I do intend to get this pulled up to netbsd-5.

     Have you given any thought to the case where scripts with the same
name exist in multiple directories (i.e. somebody installs sshd from
pkgsrc)?

} Index: etc/defaults/rc.conf
} ===================================================================
} RCS file: /home/joerg/repo/netbsd/src/etc/defaults/rc.conf,v
} retrieving revision 1.101
} diff -u -p -r1.101 rc.conf
} --- etc/defaults/rc.conf      23 Mar 2009 18:52:02 -0000      1.101
} +++ etc/defaults/rc.conf      4 Apr 2009 21:06:09 -0000
} @@ -30,6 +30,10 @@
}  #
}  rc_rcorder_flags=""
}  
} +# The directories searched for rc scripts.
} +# This directories must be part of the root filesystem.

     s/This/These/

} +rc_directories=/etc/rc.d 
} +
}  # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
}  #
}  do_rcshutdown=YES
} 
}-- End of excerpt from Joerg Sonnenberger


Home | Main Index | Thread Index | Old Index