From owner-freebsd-current@freebsd.org Mon Jul 17 09:58:32 2017 Return-Path: Delivered-To: freebsd-current@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 00ECDD7620F for ; Mon, 17 Jul 2017 09:58:32 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (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 B803C7EE16 for ; Mon, 17 Jul 2017 09:58:31 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (124-18-21-125.dz.commufa.jp [124.18.21.125]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id v6H9wMVe070181; Mon, 17 Jul 2017 18:58:22 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Mon, 17 Jul 2017 18:58:22 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Cc: sepherosa@gmail.com Subject: Re: Where should I put devd related scripts? Message-Id: <20170717185822.615c909c43fa33d293a5ac0a@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 09:58:32 -0000 Hi. Usually, you should put configuration files (looked in by devd) on /usr/local/etc/devd, and actual executables (specified by the configuration files) on /usr/local/sbin/. sysutils/automount would be a good example. See its port Makefile. Don't forget that actual installation directory is under LOCALBASE, usually /usr/local. If you want to know further, fetch its distfile and see its contents. Essentially, no need to install it, as it's NO_BUILD. If you describe configuration file with full path, the actual binary itself can be put anywhere you want (except noexec directory). For example, /compat/linux/usr/sbin. If you need to replace system-default behaviour, you would need to edit system-wide configuration file on /etc/devd to point actual binary you need for the very entry. This case, usually the binary itself should better been installed on /usr/local/sbin. On Mon, 17 Jul 2017 17:20:15 +0800 Sepherosa Ziehau wrote: > Hi all, > > Where should I put devd related scripts? > > Thanks, > sephe > > -- > Tomorrow Will Never Die > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Tomoaki AOKI