From owner-freebsd-questions@freebsd.org Thu Dec 17 13:59:10 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AA74A4ABF7 for ; Thu, 17 Dec 2015 13:59:10 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (jacobs.geeks.org [204.153.247.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2229B1968 for ; Thu, 17 Dec 2015 13:59:09 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id 956DD110234 for ; Thu, 17 Dec 2015 07:52:21 -0600 (CST) Received: by mail.geeks.org (Postfix, from userid 1003) id 701B2110228; Thu, 17 Dec 2015 07:52:21 -0600 (CST) Date: Thu, 17 Dec 2015 07:52:21 -0600 From: Doug McIntyre To: freebsd-questions@freebsd.org Subject: Best way to start pkg daemons that don't come with their own rc script Message-ID: <20151217135221.GB1545@geeks.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2015 13:59:10 -0000 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?