From owner-freebsd-ports Fri Jan 26 22:41:33 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA28608 for ports-outgoing; Fri, 26 Jan 1996 22:41:33 -0800 (PST) Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA28594 for ; Fri, 26 Jan 1996 22:41:31 -0800 (PST) Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id HAA18231 ; Sat, 27 Jan 1996 07:41:25 +0100 Received: from (uucp@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) with UUCP id HAA07339 ; Sat, 27 Jan 1996 07:41:24 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.7.3/keltia-uucp-2.7) id DAA24074; Sat, 27 Jan 1996 03:07:17 +0100 (MET) From: Ollivier Robert Message-Id: <199601270207.DAA24074@keltia.freenix.fr> Subject: Re: WARNING: proposed change to samba port To: winter@jurai.net (Matthew N. Dodd) Date: Sat, 27 Jan 1996 03:07:16 +0100 (MET) Cc: andreas@knobel.gun.de, ports@FreeBSD.org In-Reply-To: from "Matthew N. Dodd" at "Jan 26, 96 04:52:24 am" X-Operating-System: FreeBSD 2.2-CURRENT ctm#1586 X-Mailer: ELM [version 2.4ME+ PL3 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@FreeBSD.org Precedence: bulk It seems that Matthew N. Dodd said: > Shall we discuss how the /etc/rc / sysconfig stuff needs to work > so packages can add their own config stuff next? Just modify them to add scripts in /usr/local/etc/rc.d (cf /etc/sysconfig: #!/bin/sh # # This is sysconfig - a file full of useful variables that you can set # to change the default startup behavior of your system. # # $Id: sysconfig,v 1.31 1996/01/06 20:49:18 jkh Exp $ ######################### Start Of Local Configuration Section ########### # Location of local startup directories. local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" I do not use it because I use /etc/rc.d instead bu the idea remains the same... /etc/init.d: total 3 -rw-r--r-- 1 root wheel 188 Sep 25 02:44 README -rwxr-x--- 1 root wheel 258 Sep 25 02:20 news.sh* -rwxr-x--- 1 root wheel 314 Nov 17 23:40 ssh.sh* /etc/rc.d: total 0 lrwxr-xr-x 1 root wheel 17 Sep 25 02:44 90news.sh@ -> ../init.d/news.sh lrwxr-xr-x 1 root wheel 16 Sep 25 02:44 91ssh.sh@ -> ../init.d/ssh.sh PS: I know, it sounds like SYSV. So what ? :-) It is more flexible than editing /etc/rc.local and you can say: /etc/init.d/ssh.sh stop ... edit some parameter files... /etc/init.d/ssh.sh start -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia.freenix.fr 2.2-CURRENT #1: Sun Jan 14 20:23:45 MET 1996