summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/devd
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace nitkevlo2012-07-131-1/+1
|
* Prepare for the removal of set_rcvar() by changing the rcvar=dougb2012-01-141-1/+1
| | | | | | | | | | | | | | | assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps.
* Introduce to rc.subr get_pidfile_from_conf(). It does just what it soundsdougb2011-04-231-1/+12
| | | | | | | | | like, determines the path to a pid file as it is specified in a conf file. Use the new feature for rc.d/named and rc.d/devd, the 2 services in the base that list their pid files in their conf files. Remove the now-obsolete named_pidfile, and warn users if they have it set.
* Add pidfile [1]dougb2010-12-271-5/+11
| | | | | | | | While I'm here, don't run the sysctl frob unconditionally, and s/sysctl/$SYSCTL/ PR: conf/153460 [1] Submitted by: Grigory Rechistov <ggg_mail@inbox.ru>
* Integrate rc.d/network_ipv6 into rc.d/netif:hrs2009-09-121-1/+1
| | | | | | | | | | - Add rc.d/stf and rc.d/faith for stf(4) and faith(4). - Remove rc.d/auto_linklocal and rc.d/network_ipv6. - Move rc.d/sysctl to just before FILESYSTEMS because rc.d/netif depends on some sysctl variables. Reviewed by: brooks MFC after: 3 days
* Add the shutdown KEYWORD to those scripts that start persistent servicesdougb2008-07-161-1/+1
| | | | | | | | | | | 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.
* As previously discussed, add the svn:executable property to all scriptsdougb2008-07-161-0/+0
|
* network_ipv6 also does some interface configuration so require it to runbrooks2006-09-211-1/+1
| | | | | | before starting devd so they don't trip over each other. PR: conf/103428
* Announce all interfaces to devd on attach/detach. This adds a new devctlthompsa2006-06-011-2/+2
| | | | | | | | | | | | | | notification so all interfaces including pseudo are reported. When netif creates the clones at startup devctl_disable has not been turned off yet so the interfaces will not be initialised twice, enforce this by adding an explicit order between rc.d/netif and rc.d/devd. This change allows actions to taken in userland when an interface is cloned and the pseudo interface will be automatically configured if a ifconfig_<int>="" line exists in rc.conf. Reviewed by: brooks No objections on: net
* Use ${name} in pathnames where appropriate.yar2005-10-281-1/+1
| | | | | The sendmail script already was on this way, but it didn't reach the end of it yet.
* Remove the requirement for the FreeBSD keyword as it no longermtm2004-10-071-1/+1
| | | | | | | makes any sense. Discussed with: dougb, brooks MFC after: 3 days
* Mark scripts as not usable inside a jail by adding keyword 'nojail'.pjd2004-03-081-1/+1
| | | | Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
* Start devd after the networking stuff, but before we mount theimp2003-02-121-2/+2
| | | | | | | | | | | critical remote systems. This lets us run commands from devd that aren't on the / partition. This also means we can remove some kludges from the networking startup that I added a while ago that caused other problems. There's still a race in starting devd that needs to be fixed in devd so that things present at boot will be configured by the time devd does daemon(). That race will be fixed later.
* Purely cosmetic change.mtm2003-01-161-1/+1
| | | | | | The # PROVIDE line should precede the # REQUIRE line. Approved by: markm (mentor)
* Do not unconditionally load the configuration files for the RCNG case.dillon2002-12-221-0/+1
| | | | | | | | | | | | | | Instead, load them as part of the rc.d system. This allows us to prioritize the initidiskless script so it runs before the configuration files are loaded and allows us to get rid of the exit 2 hack in /etc/rc. The exit 2 never worked anyway since it did not unset the prior configuration, causing the diskless code to not operate properly. Do a major cleanup and revamping of the diskless code for RCNG. This will be backported to the non-RCNG scripts as well as -stable. With suggestions from: Mike Makonnen <mtm@identd.net> MFC after: 7 days
* Two fixes for devd:imp2002-11-301-1/+6
| | | | | 1) Move devd to the start of the head of the boot process rather than the end. 2) Disable devctl if devd is disabled.
* Add devd to the mix. It should run basically last at this point.imp2002-11-091-0/+17
# I've tested this, but only lightly, so please email me with problems.
OpenPOWER on IntegriCloud