Re: rc scripts

2014-07-03 Thread Ian McWilliam
On 3/07/2014 8:29 PM, Craig R. Skinner wrote: On 2014-07-03 Thu 16:23 PM |, Ian McWilliam wrote: 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

Re: rc scripts

2014-07-03 Thread Craig R. Skinner
On 2014-07-03 Thu 14:13 PM |, Ian McWilliam wrote: > > 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? . /usr/local/libexec/samba-control ?

Re: rc scripts

2014-07-03 Thread Craig R. Skinner
On 2014-07-03 Thu 16:23 PM |, Ian McWilliam wrote: > > 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 no

Re: rc scripts

2014-07-03 Thread Stuart Henderson
On 2014/07/03 16:23, Ian McWilliam wrote: > OK, in that case, common functions will be duplicated 3 times in each > of the smbd, nmbd, winbindd rc scripts. rc scripts shouldn't be complicated/long enough that the duplication is a problem :)

Re: rc scripts

2014-07-02 Thread Antoine Jacoutot
> 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 c

Re: rc scripts

2014-07-02 Thread Ian McWilliam
On Thu, Jul 3rd, 2014 at 4:07 PM, Antoine Jacoutot wrote: > On Thu, Jul 03, 2014 at 02:13:46PM +1000, Ian McWilliam wrote: > > Hi all, > > > > Need some advice on the rc script infrastructure and the best way to > detect running processes. > > > > is some like the following acceptable practic

Re: rc scripts

2014-07-02 Thread Antoine Jacoutot
On Thu, Jul 03, 2014 at 02:13:46PM +1000, Ian McWilliam wrote: > Hi all, > > Need some advice on the rc script infrastructure and the best way to detect > running processes. > > is some like the following acceptable practice or are there some existing > functions that will do the > equivalent.

Re: rc scripts

2011-10-13 Thread Antoine Jacoutot
On Fri, 14 Oct 2011, frantisek holop wrote: > hmm, on Thu, Oct 13, 2011 at 11:49:32PM +0200, Antoine Jacoutot said that > > On Thu, 13 Oct 2011, frantisek holop wrote: > > > > > also, some ports have executable pkg/*.rc file, some dont. > > > what's the policy on that? > > > > What do you mean?

Re: rc scripts

2011-10-13 Thread frantisek holop
hmm, on Thu, Oct 13, 2011 at 11:49:32PM +0200, Antoine Jacoutot said that > On Thu, 13 Oct 2011, frantisek holop wrote: > > > also, some ports have executable pkg/*.rc file, some dont. > > what's the policy on that? > > What do you mean? -rwxr-xr-x 1 root wheel 267 Apr 9 2011 /usr/ports/www

Re: rc scripts

2011-10-13 Thread Antoine Jacoutot
On Thu, 13 Oct 2011, frantisek holop wrote: > also, some ports have executable pkg/*.rc file, some dont. > what's the policy on that? What do you mean? > now on to my problem :] > but whenever i make make update-plist after make fake, i get: > > ===> Updating plist for tinyproxy-1.8.3 > Sca