summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Only pass paths to directories or config files that exist for ldconfig forjhb2007-12-131-2/+8
| | | | | | 32-bit binaries. MFC after: 3 days
* Add an empty stop_cmd to the remaining scripts that don't startdougb2007-12-084-0/+4
| | | | daemons and don't already have one.
* Remove a meaningless KEYWORDdougb2007-12-081-1/+1
|
* Remove the bootconf.sh script. It was never used on FreeBSD, and wasdougb2007-12-081-81/+0
| | | | removed from the Makefile in version 1.5 (2002/09/02) but never GC'ed.
* Remove spurious # marks to be more consistent with existing style.dougb2007-12-084-4/+0
|
* Remove empty REQUIRE linedougb2007-12-081-1/+0
|
* Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d filesdougb2007-12-0855-55/+0
| | | | | with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough.
* Add reload functionality.brix2007-11-141-1/+3
| | | | | PR: conf/116659 Approved by: sam, erwin (mentor)
* Nuke rc.d/nfslocking which has been superceeded by rc.d/{lockd,statd}mtm2007-10-252-64/+1
|
* Remove unnecessary whitespacemtm2007-10-251-1/+1
|
* 1. Determine the location of the rndc* binaries relative to $commanddougb2007-10-221-14/+22
| | | | | | | | | | | | | | | | | | | | so that when using named from the ports (or elsewhere) the proper rndc* commands will be run. 2. Rework the stop routine using ideas from brooks and delphij. Specifically I am duplicating a lot of code from rc.subr's stop routine so that this one will behave more like the one in rc.subr, but use rndc to kill the daemon (or regular kill if that fails). This also avoids the problems related to using killall if rndc fails, which is bad if you're running more than one named on the same box. 3. Take a concept from gshapiro and allow the rndc.key file to be owned by root OR the named_uid user. Although I used different solutions, this commit handles issues raised in: PR: conf/73929 PR: conf/103976 PR: conf/109409
* The amd_map_program knob can potentially contain a command whose outputmtm2007-10-191-2/+3
| | | | | | | | | | | | | | | | is then used as an argument to the amd program. This outpu may contain newlines, but the script did not take care to strip those newlines before apending it to rc_flags. Revision 1.72 of rc.subr(8) introduced changes that exposed this problem (specifically putting the final eval'ed command in quotes).[1] Also, for correctness' sake, shell directives appended to the command-line by the script should go into command_args, and not appended directly to rc_flags. Reported by: John E Hein <jhein@timing.com> [1] Tested by: John E Hein <jhein@timing.com> MFC after: 1 week
* Partial backout of rev. 1.6, but instead of putting kerberos5_server_flagsmtm2007-10-191-0/+1
| | | | back in command_args, put it where rc.subr(8) expects it: kerberos5_flags.
* Teach /etc/rc.d/ppp how to start/stop individual instancesemax2007-10-181-3/+36
| | | | | | | | of ppp. This is an extension of previous commit. Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru > Reviewed by: mtm MFC after: 3 days
* Backout sensors framework.netchild2007-10-152-18/+1
| | | | | Requested by: phk Discussed on: cvs-all
* Import OpenBSD's sysctl hardware sensors framework.netchild2007-10-142-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
* Teach /etc/rc.d/ppp to start multiple instances of ppp.emax2007-10-121-9/+43
| | | | | | | | | | | ppp_profile variable can now contain multiple profiles. Overrides for ppp mode and nat can go into ppp_$profile_mode and ppp_$profile_nat variables respectively. If those are not specified, defaults from ppp_mode and ppp_nat are used. Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru > Reviewed by: mtm MFC after: 1 week
* Deprecate use of the early.sh script as advertised when the support fordougb2007-10-091-0/+3
| | | | | | | | | | | | | | local rc.d scripts in the overall boot order was added. Proper rc.d scripts are run by rc.subr in a subshell, whereas scripts that end in .sh are sourced into rc's shell. The latter has potential to create serious boot problems, and there is no reason that the same functionality cannot be added by the user in the form of a proper rc.d script (as opposed to being added by the user in the form of /etc/rc.early). This script will be removed prior to the 8.0 branch. Approved by: re (kensmith)
* Removing obsolete cached files after cached->nscd renaming.bushman2007-10-021-32/+0
| | | | Approved by: re (kensmith), brooks (mentor)
* Finishing renaming of cached into nscd. etc/rc.d and usr.sbin/Makefilebushman2007-09-282-5/+25
| | | | | | updated. Note added to UPDATING. Approved by: re (kensmith, bmah), brooks (mentor)
* Add the startup script for ftp-proxy(8) to the Makefile as well.mlaier2007-09-071-1/+1
| | | | | Approved by: re (bmah - implicit) Reminded by: mtm
* Add a startup script for ftp-proxy(8) now that it is no longer started asmlaier2007-09-061-0/+17
| | | | | | | | part of inetd(8). Approved by: re (bmah) Reviewed by: freebsd-rc (a while back) Reminded by: kevlo
* Start lockd after statd.mtm2007-09-031-1/+1
| | | | | Approved by: re (bmah) Noticed by: Ted Faber <faber@ISI.EDU>
* sleep 2 seconds after having loaded g_uzip.ko. We need this becausematteo2007-08-251-0/+2
| | | | | | | | otherwise the /dev/mdX.uzip won't be created immediately, which is needed because we issue a mount right afterwards. Approved by: re@ (bmah@) MFC after: 2 days
* My forced commit to note the repo-copy (naturally) changed the $FreeBSD$ ↵mtm2007-08-182-10/+22
| | | | | | | | | | keyword line, so that when I applied the patch to my check-in tree the top half of my patch failed to apply. Off course I saw what I *expected* to see (the bottom half succeeded) and didn't notice that it had failed to apply cleanly. Approved by: re (bmah)
* The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It ↵mtm2007-08-174-57/+7
| | | | | | | | | | | | | | | | | worked well in most cases, except one. The 'restart' case was not working as expected. Specifically, it would stop both lockd and statd, but it would restart only statd (which appears first in the script). This is because rc.subr(8) contains code to guard against infinite recursion in the 'restart' casae. To fix this use the traditional approach of controlling only one server from one script by breaking out rc.d/nfslocking into its contituent parts: rc.d/lockd and rc.d/statd. Keep rc.d/nfslocking around but don't include it in the boot rcorder(8)ing. PR: conf/107316 Approved by: re (bmah) MFC after: 2 weeks
* - Renaming repocopied cached to nscdbushman2007-08-091-8/+8
| | | | Approved by: re (kensmith), brooks (mentor)
* Require 'cleanvar' so that files and sockets created in /var/run byjhb2007-07-251-1/+1
| | | | | | | | | wpa_supplicant and other programs started by 'netif' don't get erased by a subsequent 'cleanvar'. Approved by: re (bmah) Reviewed by: dougb MFC after: 1 week
* Add a new rc.conf variable, sendmail_rebuild_aliases, which tellsgshapiro2007-06-121-8/+10
| | | | | | | | | | | | | | | /etc/rc.d/sendmail whether or not to run newaliases if the database is missing or the aliases text file is newer than aliases.db. In my opinion, the aliases file should never be automatically rebuilt. The current text form could represent a work in progress. Therefore, in FreeBSD 7.0, this new option will default to "NO". When this rc.d change is MFC'ed, it will need to remain "YES" to maintain backward compatibility. PR: conf/86252 Approved by: re (kensmith) MFC after: 3 days
* Finish making resolv ordering deterministic by REQUIRE'ing it here.dougb2007-06-021-1/+1
|
* Add REQUIRE netif to make ordering more deterministic, and to make suredougb2007-06-021-5/+6
| | | | | | we have a fighting chance of having useful stuff from DHCP. Tighten up the code a little, and fix whitespace issues.
* Fix indentation.rse2007-05-241-1/+1
|
* Remove two superfluous trailing semicolons.rse2007-05-242-2/+2
|
* Remove two unnecessary and useless sub-shell constructs.rse2007-05-242-2/+2
|
* backout filter of Nil UUID as the boot loader code already filters out Nil ↵rse2007-05-221-4/+0
| | | | UUIDs (see src/sys/boot/i386/libi386/smbios.c:smbios_setuuid for details)
* Remove the ugly csh(1) based UUID lower-case translation hack fromrse2007-05-221-1/+0
| | | | | | /etc/rc.d/hostid now that we switched the origin of the UUID (variable smbios.system.uuid as provided by the i386 BIOS code) to already provide a standard conforming lower-case UUID text representation.
* Cleanup style by consistently using braces around variable expansion andrse2007-05-211-1/+5
| | | | | apply an addition from Andrew Thompson <thompsa> for filtering out the special "Nil" UUID (all zeros) which would be a useless host UUID.
* Adjust UUID lower-case translation from straight-forward tr(1)rse2007-05-211-1/+2
| | | | | | | | | | usage to an equivalent csh(1) usage as tr(1) stays in /usr/bin and /etc/rc.d/hostid has just the root filesystem (and this way mainly the tools in /bin) available. I've chosen csh(1) here as the string manipulation tools available in /bin is extremely limited and the (only) alternative ed(1) usage would have been a lot more complicated or even might require a temporary file.
* The standardized textual representation of UUIDs according to RFC 4122rse2007-05-211-2/+2
| | | | | | | | and ISO/IEC-9834-8:2005 is with LOWER-CASE hexadecimal characters only, so translate the (usually upper-case and this way not conforming) representation of the BIOS UUID when reading it. Also be more strict about the valid characters in the textual representation by checking for just the hexadecimal characters.
* o Implement the stop_boot subroutine [1]. This subroutine can be used bymtm2007-05-185-23/+4
| | | | | | | | | | | | | | | | | scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks
* o Use the --detach option to kdc(8) instead of using the shellmtm2007-05-171-3/+3
| | | | | | | | | background operator '&'. PR: conf/102722 o No need to include $kerberos5_server_flags in $command_args as rc.subr(8) will take care of this.
* The precmd routine does not need to check whether the command should bemtm2007-05-173-24/+30
| | | | | | | | | | "forced". If some pre-condition is not met, it should fail as it normally does and rc.subr(8) will make the appropriate decision. Incidentally, the previous behaviour had a bug where the "force" flag was respected only when checking rc.conf(5) knobs. The flag was ignored when verifying the rpcbind(8) dependency. MFC after: 2 weeks
* Move options that do not have anything to do with routing out ofmtm2007-05-022-42/+43
| | | | | rc.d/routing and in to rc.d/netoptions. Also instead of saying "TCP options" say "IP options".
* When rc.d/NETWORKING included this script in its REQUIRE line, a circularmtm2007-05-021-1/+1
| | | | | | | | dependency was introduced because this script had rc.d/localpkg (which is *after* rc.d/NETWORKING) in its REQUIRE line. From an examination of its contents it seems that only the availability of a local filesystem is necessary for this script to function properly.
* When zfs dataset has jailed=on property, it won't be mounted withpjd2007-04-221-3/+34
| | | | | | | 'zfs mount -a' from the main system - this is by design, as mountpoint may be set to dangerous value. This all means, that such file system has to be mounted from within a jail. To make it easier, reorganize rc.d/zfs script so it can be used from within a jail.
* When org.freebsd:swap property is set to 'on' on a ZVOL, use is as a swappjd2007-04-151-0/+18
| | | | | | device. Discussed with: des
* Remove the shutdown keyword. It just adds noise to the shutdown process.des2007-04-131-1/+1
|
* - Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don'tpjd2007-04-131-2/+5
| | | | | | | | | | NFS-share anything. This way we can safely start mountd with /etc/zfs/exports and mountd won't complain. Pointed out by: ceri - Move 'zfs volinit' before 'zfs mount -a' and 'zfs volfini' after 'zfs unmount -a'.
* mountd(8) was changed to only abort when all given exports files cannot bepjd2007-04-131-1/+1
| | | | open, so we not longer has to check if /etc/zfs/exports exists.
* o Look for a zfs(1) exports file only if it exists and is readable. Ifmtm2007-04-131-1/+2
| | | | | we don't do this and the file doesn't exist mountd(8) will abort. o The mountd(8) daemon creates a pidfile, so use it.
OpenPOWER on IntegriCloud