John Baldwin
a0f01ecb62
Add the ability to run /usr/sbin/crashinfo on a new core dump automatically
...
during boot. Right now this is disabled by default, but it can be enabled
by setting 'crashinfo_enable=YES' in rc.conf.
MFC after: 2 weeks
2008-08-29 20:30:30 +00:00
Dag-Erling Smørgrav
e64eb994bf
Make obrien happy
2008-08-25 16:28:54 +00:00
Rui Paulo
20c78c6e69
Cope with the file rename by changing rc variables.
2008-08-21 00:04:19 +00:00
David E. O'Brien
55a738ec2b
Rename the RCng 'kernel' script to 'kernel_symlink'.
2008-08-20 03:02:06 +00:00
David E. O'Brien
5241279fa1
Rename the RCng 'kernel' script to 'kernel_symlink'.
...
Requested by: many
2008-08-19 14:23:31 +00:00
David E. O'Brien
01faf7789b
Only symlink booted kernel directory to /boot/kernel if user has explicitly
...
requested it. This is too dangerous to just do behind the admin's back.
2008-08-09 01:19:00 +00:00
Doug Barton
c1f84335c4
When using SRV records the protocols and services files need to be in the
...
chroot /etc directory.
PR: conf/121101
Submitted by: Stefan `Sec` Zehl <sec@42.org>
2008-08-01 06:11:33 +00:00
John Baldwin
4746c560a4
Oops, restore the recent changes to make startup messages quieter.
2008-07-31 22:13:14 +00:00
John Baldwin
4ceda705b7
Parse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.conf
...
if it exists. This mirrors similar behavior for /boot/loader.conf and
/etc/rc.conf.
Obtained from: Yahoo!
MFC after: 1 week
2008-07-31 21:57:35 +00:00
Marcel Moolenaar
9005d65e46
With uart(4) default, change /dev/cuad# to /dev/cuau# and
...
sio# to uart# so that out-of-the-box FreeBSD is consistent.
2008-07-19 20:12:02 +00:00
Marcel Moolenaar
7fc2c2bc83
With uart(4) default, change /dev/cuad# to /dev/cuau# and
...
sio# to uart# so that out-of-the-box FreeBSD is consistent.
2008-07-19 20:11:33 +00:00
Doug Barton
04f0f225dd
Add the shutdown KEYWORD to those scripts that start persistent services
...
to allow them to do a "clean" shutdown.
I purposely avoided making changes to network-related stuff since the
system shutting down is pretty conclusive, and there may be complicated
dependencies on the network that I would rather not try to unravel.
I also skipped kerberos-related stuff for the reasons above, and
because I have no way to test it.
2008-07-16 19:50:29 +00:00
Doug Barton
2b9851690c
As previously discussed, add the svn:executable property to all scripts
2008-07-16 19:22:48 +00:00
Mike Makonnen
5692c36098
The pfctl(8) program is already pretty verbose, so don't print extra
...
information in quiet mode.
2008-07-11 08:11:49 +00:00
Mike Makonnen
9300b74ce4
Remove the $DUMPDIR variable. It's redundant and the rest of the
...
script uses $dumpdir directly.
2008-07-06 08:31:29 +00:00
Mike Makonnen
f562910214
Make checking for the availability of core dumps work in the case
...
that $dumpdev is not set to "AUTO".
Reported by: Paul B. Mahol <onemda@gmail.com>
2008-07-06 07:51:29 +00:00
Mike Makonnen
7a711eb359
No need to display the result of enabling the ipfw sysctl if it's
...
successfull. Issue a warning if it fails, however.
2008-07-05 15:27:39 +00:00
Mike Makonnen
8144c9ac9b
There's no need to announce that we're mounting local filesystems when
...
running in quiet mode since if we fail to mount any of them the boot
process gets interrupted.
2008-07-05 15:19:58 +00:00
Mike Makonnen
c5a80a7a3b
Quiet down rc.d/nfsclient by not printing anything in 'quiet' mode. Instead
...
issue a warning of it fails to set the sysctls.
2008-07-05 15:13:21 +00:00
Mike Makonnen
cca7688f37
Backout r179941. The nfsclient knob always confuses me. I should have
...
double-checked my setup before commiting.
Noticed by: Florian Smeets
Pointy hat to: mtm
2008-06-27 15:45:17 +00:00
Mike Makonnen
522b9831bd
Quiet rc.d/syscons unless it has something to say.
2008-06-24 21:01:56 +00:00
Mike Makonnen
45a5dc937d
Add a -q flag to swapon(8) to suppress informational messages. Use it in
...
rc.d.
Note: errors are not affected by this flag.
2008-06-23 22:17:08 +00:00
Mike Makonnen
d9fcd86c3a
The sysctl(8) program exits on some errors and only emits warnings on
...
others. In the case where it displayed warnings it would still return
succesfully. Modify it so that it returns the number of sysctls that
it was not able to set.
Make use of this in rc.d to display only *unsuccessfull* attempts to
set sysctls.
2008-06-23 22:06:28 +00:00
Mike Makonnen
2794059010
Run savecore(8) only if there is a core dump to save. If there is
...
no core dump hide the message to that effect behind $rc_quiet.
2008-06-23 20:54:32 +00:00
Mike Makonnen
b064049801
Implement a "quiet" mode for rc.d/netif, which only outputs
...
the interface name of interfaces that were configured.
This change has the added benefit that ifn_start() and
ifn_stop() in network.subr no longer write to standard output.
Whether to output and what to output is now handled entirely
in rc.d/netif.
2008-06-23 20:50:11 +00:00
Mike Makonnen
e2a76fa732
Set the sysctl(8) value in the same shell, not a subshell. This was
...
causing calls to netoptions_init() to not properly set a global variable,
which ended up being in the parent shell.
2008-06-23 12:06:35 +00:00
Mike Makonnen
94789e5ca4
Move a lot of diagnostic output behind $rc_quiet in scripts that
...
implement their own start command.
2008-06-23 04:46:54 +00:00
Mike Makonnen
252c018f5f
Align the script more with rc.d/cleanvar (which doesn't output any
...
diagnostics). Instead, move output behind $rc_quiet.
2008-06-23 04:42:58 +00:00
Mike Makonnen
4af728134c
Remove the -v flag from the command line to dumpon(8), and instead print
...
diagnostic ouput only if the command fails.
2008-06-23 04:39:36 +00:00
Mike Makonnen
3e9cc7692f
Argh! s/nfs_client_enable/nfsclient_enable/g
2008-06-23 04:05:39 +00:00
Mike Makonnen
8b5adf2fab
Do not print anything unless one of the net/routing options is set.
2008-06-23 04:00:45 +00:00
Mike Makonnen
b16a98ec6f
s/daemon processes/local packages/ for consisitency.
2008-06-23 03:49:30 +00:00
Mike Makonnen
f27ca6ea2f
Output information only if /etc/rc.local exists.
2008-06-22 16:23:39 +00:00
Mike Makonnen
3c81343da6
Do not print anything unless at least one of the abi emulators is
...
enabled.
2008-06-22 16:19:50 +00:00
Mike Makonnen
3dce702718
Simplify this script with the added bonus that the bit about i386
...
initialization doesn't get printed unless ibcs2_enable is set.
2008-06-22 15:57:50 +00:00
Mike Makonnen
69ad4d6960
Don't say we're going to mount filesystems of a certain type unless
...
there actually are filesystems of that type to mount.
2008-06-22 15:40:19 +00:00
Mike Makonnen
3773d8c3cf
Don't say we're going to [start|stop] local packages unless there actually
...
are local (pre rc.d) scripts to run.
2008-06-22 15:34:40 +00:00
Mike Makonnen
7d28174b91
Make quota knob conform to other rc(8) knobs. Keep older knob for
...
compatibility.
Requested by: Volker <volker@vwsoft.com>
2008-06-19 07:06:11 +00:00
Brooks Davis
06118b48d0
Fix the wait for default route change I made a few weeks ago by creating
...
a new defaultroute script that just does the wait. The previous attempt
created a circular dependency through network_ipv6.
Pointy hat to: brooks
2008-06-05 17:26:47 +00:00
Bjoern A. Zeeb
2e598474fa
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
...
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.
This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation
Discussed with: rwatson, re
2008-05-26 10:40:09 +00:00
Brooks Davis
ec200b32cd
Move the wait for a default route to rc.d/routing. Once we test for
...
non-dhcp interfaces to negotiate/associate this will make more sense.
This also correctly gets run after both devd and netif are run so it has
a chance of working.
2008-05-18 02:57:54 +00:00
Brooks Davis
ace19032cf
Change the default value of synchronous_dhclient to NO.
...
To preserve the existing behavior of etc/rc.d/netif, add code to wait
up to if_up_delay seconds (30 seconds by default) for a default route to
be configured if there are any dhcp interfaces. This should be extended
to test that the interface is actually up.
X-MFC after:
2008-05-15 01:06:10 +00:00
Florent Thoumie
404b160361
Don't require a configuration file. Ntpd will be perfectly happy if there's
...
none or if the file doesn't exist (there's no ntp.conf in the base install).
PR: conf/119592
Submitted by: Renaud Waldura <renaud+freebsd@waldura.org>
MFC after: 1 week
2008-05-12 11:49:16 +00:00
Mike Makonnen
68abe9bdf2
Specify the full path to the md5(1) binary so the script will
...
still work even if it's not in the shell's path.
PR: conf/122215
MFC after: 1 week
2008-05-06 10:40:20 +00:00
Ruslan Ermilov
6e595c6fe0
Make it possible to disable sources of entropy harvesting.
...
Noticed by: Igor Sysoev
MFC after: 3 days
2008-04-22 15:18:47 +00:00
Sam Leffler
5bd720a7c2
rc support for vaps
2008-04-20 20:37:21 +00:00
Brooks Davis
688e303c19
Add very limited support for the isc-dhclient. It will almostly certaintly
...
only work if there's just one interface doing dhcp. This version implements
the same logic as the version in the PR, but uses pgrep to be less verbose.
PR: conf/95905
MFC after: 1 week
2008-04-15 23:03:35 +00:00
Brooks Davis
30b6f51afe
Declare _ppp_profile_cleaned, _punct, and _punct_c local in
...
ppp_start_profile().
Reported by: yar
MFC after: 1 week
2008-04-10 01:32:49 +00:00
Maksim Yevmenkin
97078e0796
Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server
...
mode at boot time. Multiple profiles can be started at the same time.
The whole idea is very similar to the ppp rc script.
Document Bluetooth knobs in rc.conf(5)
MFC after: 1 week
2008-04-08 23:34:12 +00:00
Sam Leffler
2a54bb549f
o add rc.conf knobs to set the wpa_supplicant program, logging flags,
...
and config file
o change default logging options from -q to -s (log to syslog); this
is currently broken for boot-time startup as syslogd is started too
late but that'll be dealt with separately
MFC after: 2 weeks
2008-04-08 23:12:15 +00:00