summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* When clearing /tmp, X11 lock and temporary files are special.mtm2003-12-011-13/+13
| | | | | | | Remove them unconditionaly. PR: bin/59065 Approved by: re (scottl)
* Add a means of starting an IKE daemon from the rc system at an appropriatebms2003-11-281-0/+18
| | | | | | | | | time during the boot process. This is needed in the case where NFS mounts from servers reachable only via IPSEC are in /etc/fstab. PR: conf/42497 Submitted by: Volker Stolz Approved by: re (rwatson)
* Change a bogus -n parameter to echo(1).mux2003-11-031-1/+1
|
* install address selection policy into kernel when there isume2003-10-302-1/+34
| | | | | | | | | | | | /etc/ip6addrctl.conf. following sample of ip6addrctl.conf is a good default: #Prefix Precedence Label ::1/128 50 0 ::/0 40 1 2002::/16 30 2 ::/96 20 3 ::ffff:0:0/96 10 4
* * Remove the OS specific bits, since NetBSD isn't interested indougb2003-10-131-21/+13
| | | | | | | | | | porting this stuff back. * Test /etc/motd for writability before trying to update it. This is especially useful when /etc/ is mounted ro, like on a diskless boot. (Thanks to phk for the idea on this one.) * Make the "updating" message reflect what actually happens.
* Remove trailing whitespacedougb2003-10-135-9/+9
|
* Update references to rc.diskless[12]dougb2003-10-135-6/+6
|
* Bump default /etc size from 2MB to 5MB to deal with bloat^Wgrowth inkris2003-10-121-4/+3
| | | | the size of /etc.
* Fix typo.phk2003-10-034-4/+4
| | | | Spotted by: "Bjoern A. Zeeb" <bzeeb@zabbadoz.net>
* More checking if kenv actually know something.phk2003-10-034-8/+16
| | | | Guard against test(1)-unfriendly outputs from kenv.
* In case we have no /etc/resolv.conf, don't try to make it out ofphk2003-10-034-4/+4
| | | | | | | thin blue air if the kenv doesn't have any info. This improves the truth value of the comment above significantly and reduces the bogous output on the console considerably.
* Fix bogon in ipfilter_resync() introduced in my last commit.mux2003-10-031-1/+3
| | | | Spotted by: Gennady Proskurin <gpr@nvnpp.vrn.ru>
* A number of fixes/enhancements for the ipfilter rc script:mux2003-09-271-15/+22
| | | | | | | | | | | | | | | - Use a more robust check to determine if we need to load ipl.ko. - Don't try to run ipf -E if ipfilter is already enabled. Look at the net.inet.ipf.fr_running sysctl to figure this out. This fixes a warning message about ipfilter being already initialized. - Only one ipf -E command is needed. We don't need an extra one for the -6 case which would only print a warning message about ipfilter being already initialized. - Fix one occurence where we were running /sbin/ipf directly without using the ${ipfilter_program} variable if set. - In ipfilter_stop(), don't try to save the firewall state tables if ipfilter is disabled. Similarly, don't try to disable it if it's already disabled. This fixes some more error messages.
* Get rid of a nasty error message that tells usmbr2003-09-161-4/+13
| | | | | | | | | | dhclient couldn't get killed. If we execute 'dhclient -r', dhclient gets already killed, so there is no need to do it twice. Only do this if we really have to release some leases. Reviewed by: silence on freebsd-rc@yahoogroups.com
* Remove deprecated files no longer neccesary as part of rc.d. Includemtm2003-08-295-494/+1
| | | | a note in UPDATING about removing them from current installations.
* Enhance the jail start/stop script.mtm2003-08-241-10/+100
| | | | | | | | | | | | | | | | | | | | o The following additional configuration attributes of a jail can be controlled from rc.conf: - mounting devfs(5) - mounting fdescfs(5) - mounting procfs(5) - custom devfs(8) ruleset If no ruleset is specified, the default jail ruleset is used. o The output of executing /etc/rc in the jail is now redirected to /dev/null. Instead, the hostname of the jail is echoed if the jail(8) command exited successfully. If the output is wanted it can probably be redirected to a file (/var/run/$jail maybe) instead of /dev/null. Submitted by: Scot W. Hetzel <hetzels@westbend.net> with modifications by Jens Rehsack <rehsack@liwing.de> and me.
* Add a general mechanism for creating and applyingmtm2003-08-201-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | devfs(8) rules in rc(8). It is most useful for applying rules to devfs(5) mount points in /dev or inside jails. The following line of script is sufficient to mount a relatively useful+secure devfs(5) in a jail: devfs_mount_jail /some/jail/dev Some new shell routines available to scripts that source rc.subr(5): o devfs_link - Makes it a little easier to create symlinks o devfs_init_rulesets - Create devfs(8) rulesets from devfs.rules o devfs_set_ruleset - Set a ruleset to a devfs(5) mount o devfs_apply_ruleset - Apply a ruleset to a devfs(5) mount o devfs_domount - Mount devfs(5) and apply some ruleset o devfs_mount_jail - Mount devfs(5) and apply a ruleset appropriate to jails. Additional rulesets can be specified in /etc/devfs.rules. If the devfs_system_ruleset variable is defined in rc.conf and it contains the name of a ruleset defined in /etc/defaults/devfs.rules or user supplied rulesets in /etc/devfs.rules then that ruleset will be applied to /dev at startup by the /etc/rc.d/devfs script. It can also be applied post-startup: /etc/rc.d/devfs start This is a more flexible mechanism than the previous method of using /etc/devfs.conf. However, that method is still available. Note: since devfs(8) doesn't provide any way for creating symlinks as part of a ruleset, anyone wishing to create symlinks in a devfs(5) as part of the bootup sequence will still have to rely on /etc/devfs.conf.
* Quote $jail_exec with double-quote to avoid "[: unexpected operator".kuriyama2003-08-191-1/+1
|
* Prepend /lib to the search order for libraries.gordon2003-08-171-1/+1
|
* Now that routes for IP over ATM may look much more complex than before,harti2003-08-141-0/+8
| | | | | | | | | use the atmconfig(8) utility instead of route(8) to install those routes. For this we need a new rc.conf variable natm_static_routes that works just like static_routes except that the referenced routes use the syntax of atmconfig(8). Okay'ed by: mtm
* Correct typo in Matt's name.fjoe2003-08-071-1/+1
|
* Rename localdaemons to localpkg.mtm2003-08-064-3/+93
| | | | | | | | | | | | | The original name was really a mistake since /usr/local/etc/rc.d scripts can (and usually do) start more than just daemons. Even the output in the script uses 'local packages.' Also, the term 'local daemons' is used by rc.d/local, which was etc/rc.local of rcOG fame. No repo-copy because there isn't much history to save. I will remove localdaemons shortly with all the other files that don't belong in rc.d anymore. Discussed with: dougb, freebsd-rc@yahoogroups.com
* Apply some sort of order to the FILES list.mtm2003-07-301-12/+33
|
* Add two files (early.sh and gbde) that previously were notmtm2003-07-301-2/+2
| | | | hooked up to the build.
* tty whacking should occur early, but not so early that themtm2003-07-305-5/+6
| | | | | | required commands are not on a mounted file system. Noticed by: bde
* Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add supportharti2003-07-286-215/+90
| | | | | | | | | | | | | | for the harp(4) pseudo driver and for loadable native HARP drivers (like hfa_pci). To use harp(4) the rc variable natm_interfaces must be set to the list of NATM interfaces to be used for HARP. These interfaces will be brought up with ifconfig and the harp(4) will be loaded. To use loadable native HARP drivers atm_load must be set to the list of drivers to load. Reviewed by: mtm, gordon (partly)
* Always start dhclient in the background.mbr2003-07-281-0/+4
| | | | Reviewed by: mtm
* Add -dynamic to natd if dhcp is used for the natd interface.mbr2003-07-271-0/+13
| | | | | | Kill natd in stop(). Reviewed by: mtm
* Define the stop command to do nothing when only a specificmtm2003-07-261-0/+1
| | | | | interface is to be stopped. In this case we don't want to go beyond releasing the lease.
* When stopping a dhcp interface, don't just release the lease onmtm2003-07-261-12/+7
| | | | | | | | | the address, also kill the dhclient process. Instead of doing the release in the stop command, move it to the precmd stage and allow rc.subr(8) to automatically kill the dhclient process by leaving the stop command undefined. Noticed by: mbr
* Move a period out of an if... clause. The period terminates themtm2003-07-151-1/+1
| | | | | | line and must always appear on the line. Submitted by: netchild
* Make sure ipmon is run after cleaning up in /var. Otherwise,mtm2003-07-142-3/+2
| | | | | | | we would lose it's pid file. Also, cleanup the depencies in rc.d/cleanvar PR: bin/53516
* Not everyone uses the base system sshd. They can use the sshd_programmtm2003-07-131-2/+6
| | | | | | | | variable in rc.conf to have sshd from ports (or somewhere else) installed. So, don't make the sshd_config for the base system a required file to start the service. PR: conf/45766
* Be specific about which domainname is not set. It seems the man pagemtm2003-07-096-6/+6
| | | | reference is not enough.
* Have mktemp(1) construct the temporary file name for us insteadmtm2003-06-301-1/+1
| | | | | | of providing a template manually. Submitted by: Lars Eggert <larse@isi.edu>
* Allow diskless_remount files to contain path beginning with / which willbrooks2003-06-301-0/+18
| | | | | | | be mounted relative to the NFS root mountpoint. Reviewed by: dillon at backplane.com MFC After: 3 days
* Properly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.trhodes2003-06-301-4/+4
| | | | | | PR: 25527 Submitted by: Alexey Neyman <alex.neyman@auriga.ru> Reviewed by: jdp
* Ugh. Remove debugging echo.mtm2003-06-291-1/+1
|
* Implement individual operations on static and dhcp interfaces. Previouslymtm2003-06-292-26/+158
| | | | | | | | | | | | | | | | network interfaces could only be turned on and off as a group (all static interfaces or all dhcp interfaces). When used to start the interface a 'long form' ifconfig output is used to show the status of the interface, but when stopping an interface the script will simply output the name of the interface. This is simply my personal preference. Hopefully as this functionality matures we can stabilize on a prefered form of output for these scripts. A stop command to the dhclient script now explicitly releases the dhcp lease. Behaviour at system shutdown; however, is unchanged since dhclient is not, by default, run at that time. The client will not release its lease at shutdown.
* o Hookup rc.d/routing and rc.d/netoptionsmtm2003-06-2910-11/+11
| | | | | | | o Ensure rc.d/network2 and rc.d/network3 are not automatically run during boot o Modify script headers so rcorder(8) can put the two scripts in the correct sequence.
* o Repocopied routing and netoptions from network2 and network3, respectively.mtm2003-06-292-7/+24
| | | | | | | | o Change the provider names. o Separate routing into two parts: static routing and routing options. The start command will run both parts, but they can be run separately using the static and options command, respectively: (/etc/rc.d/routing static; /etc/rc.d/routing options)
* - Add a software watchdog facility.smkelly2003-06-262-2/+53
| | | | | | | | | This commit has two pieces. One half is the watchdog kernel code which lives primarily in hardclock() in sys/kern/kern_clock.c. The other half is a userland daemon which, when run, will keep the watchdog from firing while the userland is intact and functioning. Approved by: jeff (mentor)
* Remove the devdb stuff, the kernel answers these questions just fine.phk2003-06-202-18/+1
|
* Add a script to automatically attach gbde devices found in fstabwollman2003-06-171-0/+92
| | | | | | (or rc.conf) at boot time, and detach them when shutting down. Not added to the Makefile to give the rcng gurus an opportunity to improve it.
* Fixed some style bugs (disorder and long lines).bde2003-06-111-4/+7
|
* o Have rc.d/apm report on the status of apm.mtm2003-06-092-3/+29
| | | | | | o Modify rc.d/apmd to make correct use of this information. Submitted by: Simon L. Nielsen <simon@nitro.dk> (with minor modifications)
* The dhcp_program and dhcp_flags variables have to be renamed tomtm2003-06-071-2/+2
| | | | | | | | | | | | | | take advantage of the rc.subr(8) glue. They are renamed dhclient_program and dhclient_flags. o Rename them in rc.conf(5) o Rename them in /etc/defaults/rc.conf o Add the deprecated variables to /etc/rc.subr o Isolate the use of the 'command' variable to the NetBSD specific parts in /etc/rc.d/dhclient. o Now that dhcp_flags has also been renamed it will be applied properly by rc.subr(8) glue code. Reported by: John Nielsen <john@jnielsen.net>
* Remove a debugging aid the crept in during the last commit. It doesn'tmtm2003-06-061-1/+1
| | | | | | | really make much difference since this script is not used during startup and is due to be removed before RELENG_5. Submitted by: "Simon L. Nielsen" <simon@nitro.dk>
* Move networkfs_types from mountcritlocal into defaults/rc.conf as netfs_types.gordon2003-06-012-4/+11
| | | | | | Also add logic into mountcritremote to add extra_netfs_types to the list. This unbreaks putting smbfs, portalfs and now nwfs in fstab.
* nwfs is network filesystem. Treat it as such when mounting filesystems.gordon2003-06-011-1/+1
|
OpenPOWER on IntegriCloud