Date: Thu, 17 Dec 2015 17:03:45 +0300 From: Anton Sayetsky <vsasjason@gmail.com> To: Doug McIntyre <merlyn@geeks.org> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Best way to start pkg daemons that don't come with their own rc script Message-ID: <CAA2O=b9MMJ34FNqcKo3N16iNnN8EiGx=1-fg3UFWJWYdHV%2B%2BuQ@mail.gmail.com> In-Reply-To: <20151217135221.GB1545@geeks.org> References: <20151217135221.GB1545@geeks.org>
next in thread | previous in thread | raw e-mail | index | archive | help
17 =D0=B4=D0=B5=D0=BA. 2015 =D0=B3. 15:59 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0= =BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Doug McIntyre" <merlyn@geeks.org> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > So, for the concrete example. > > FreeBSD10.2 > I want to run ntp-devel > > So I install it out of pkg and it goes into /usr/local. > > But it doesn't supply a /usr/local/etc/rc.d/ntpd rc script. > Presumably because /etc/rc.d/ntpd already exists for the system > installed ntpd. > > What I tried was to move the ntpd rc out of /etc into /usr/local/etc > and change the 'command' to /usr/local/sbin/${name} > > BUT, the rc.subr code pretty much overrides that to run /usr/sbin/${name} > anyway. > > Since ntpd is part of the base system, I feel stymied. > > I did a hack to make it work. > > But what would be the "proper FreeBSD way" to have the rc script run > the right binary here? If you need to run software that is installed from ports and exists in the base too, take a look at /etc/defaults/rc.conf. For example, you should only add ntpd_program=3D"/usr/local/sbin/ntpd" in rc.conf.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA2O=b9MMJ34FNqcKo3N16iNnN8EiGx=1-fg3UFWJWYdHV%2B%2BuQ>