> OK. Samba4 contains the /usr/local/bin/samba which is the full blown Active > Directory Server. > The RC script for that (when I write it) will need checks to make sure that > smbd / nmbd / winbindd are > not running as those daemons are not used in an ADS setup. > > The above example is to check when starting the old file / print / winbind > servers that the ADS server > is not running incase you accentually started any of them while running an > ADS setup. > > For those people just wanting smb file / print services or the old NT domain > setup, you can still use > smbd / nmbd / winbind. > > Hope that describes the scenarios that the samba4 stuff will give us.
It does indeed. Ok then what you came up with is ok. At least, rc_pre() is the correct function to do that kind of checks. But you may want to use '/etc/rc.d/smbd check' ... instead. > > > Secondly is it acceptable to create a common rc script to hold common > > subs used amongst multiple rc > > > script for a port, eg samba.subr that will be used by smbd and nmbd rc > > scripts? > > > > No, the only time we use a common rc script is to start all processes of a > > common package (like we do with samba3 already). > > > > OK, in that case, common functions will be duplicated 3 times in each of the > smbd, nmbd, winbindd rc > scripts. What functions exactly? Sorry if I sound dumb but you did not provide much details and samba3 rc scripts don't seem to share any function. -- Antoine