Invoking rc.conf changes w/o rebooting
freebsd at meijome.net
Tue Jun 28 12:04:20 GMT 2005
Jonathan Arnold wrote:
> walker, mick wrote:
>> Adi Pircalabu <mailto:apircalabu at bitdefender.com> scribbled on 17 June
>>> On Fri, 17 Jun 2005 14:50:23 +0100
>>> "walker, mick" <mick.walker at ctcmarine.com> 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.
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/
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):
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
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 ;)
More information about the freebsd-questions