From owner-freebsd-questions@FreeBSD.ORG Tue Jun 28 12:04:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAABD16A41C for ; Tue, 28 Jun 2005 12:04:20 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (sigma.octantis.com.au [207.44.188.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6347343D48 for ; Tue, 28 Jun 2005 12:04:20 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 30759 invoked from network); 28 Jun 2005 22:04:14 +1000 Received: from unknown (HELO ?192.168.13.3?) (202.59.110.3) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 Jun 2005 22:04:14 +1000 Message-ID: <42C13CB6.8040403@meijome.net> Date: Tue, 28 Jun 2005 22:04:06 +1000 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Arnold References: <13D71E64E0AEED4195C4794A5D9E4FD7B6FB90@exchange01.ctcmarine.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Invoking rc.conf changes w/o rebooting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 12:04:20 -0000 Jonathan Arnold wrote: > walker, mick wrote: > >> Adi Pircalabu scribbled on 17 June >> 2005 >> 13:57: >> >> >>> On Fri, 17 Jun 2005 14:50:23 +0100 >>> "walker, mick" wrote: >>> >>> >>>> You can drop to ren level 1 using the command init 1. >>>> >>> >>> No, there is no need for such an action. A simple entry as the one >>> listed in pkg-message is enough to set up webmin for starting at boot >>> time and run time. >>> Cheers This is true...though not totally clear. The entry in rc.conf (webmin_enable="YES") is read by the rc script installed by the package (in this case webmin) in /usr/local/etc/rc.d/ (/usr/local/etc/rc.d/webmin.sh) To start the service provided by the package without rebooting , simply run the script passing the 'start' action ( call it without any params to get the full list of supported parameters): /usr/local/etc/rc.d/webmin.sh start This will check if webmin_enable="YES" is set in /etc/rc.conf and launch the service. Nice and neat. >> >> [Sorry forgot to copy the list in] >> Thanks I stand corrected. >> >> However this did not work for me for some reason, after installing sasl >> authd, however my previously mentioned method did. > > > Yes, same here for my webmin. I added it to the rc.conf and then tried > to use it and webmin wouldn't work. I rebooted and all was well. Good test > for rebooting remotely anway. On reboot, each .sh in /usr/local/etc/rc.d/ with +x will be called with 'start' parameter. If you have a daemon that doesn't provide this setup, it's quite trivial to copy an existing one and edit for your use. Rebooting your whole server to start a service is reminiscent of Win32 ;) HTH, Beto