summaryrefslogtreecommitdiff
path: root/rc.multi
AgeCommit message (Collapse)Author
2012-07-11remove /run/nologin before leaving rc.multiDave Reisner
systemd-186 writes this file when running systemd-tmpfiles, but initscripts never removes it. This disallows all non-root logins. Reported-by: Dan McGee <dan@archlinux.org> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-24mounting: let systemd-remount-fs deal with overwriting mount optionsTom Gundersen
Any api filesystem which appears in fstab is remounted with the correct mount options at the end of boot. Also, move the binfmt mount to where it is needed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29tmpfiles,sysctl,binfmt: use the systemd toolsTom Gundersen
No point in reinventing the wheel. These and other tools are shipped in the systemd-tools package. Functionality should be unchanged, but we no longer have to maintain the code. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-13Support additional binary formats at bootSébastien Luttringer
This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2011-08-31Load sysctl config files from sysctl.dSebastien Luttringer
This patch implement loading of sysctl config files as described in http://0pointer.de/public/systemd-man/sysctl.d.html This is a very conveniant way of configuring sysctl option for sysadmin which can drop sysctl config files inside this directory to enable some feature. Dropping a file like disableipv6.conf inside this directory will disable ipv6 $ cat disableipv6.conf net.ipv6.conf.all.disable_ipv6 = 1 There is atm no package which use this functionnality Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-07-10functions/rc.multi: Strip paths from binariesKurt J. Bosch
Now that we set PATH in functions, we can use is everywhere.
2011-06-24Get rid of simple if-constucts by using '&&'Kurt J. Bosch
2011-06-24rc.multi/rc.single: Merge duplicated bootlogd stop code into a functionKurt J. Bosch
2011-06-08Merge branch 'snowman'Tom Gundersen
Conflicts: rc.multi rc.single Trivial conflict, and fixed a bug introduced when I imported the patches in the first place (oops). Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Clean up ANSI codes from /var/log/bootEric Bélanger
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-04[initscripts] Avoid error message when switch runlevels.Gerardo Exequiel Pozzi
Going from multi to single and going back to multi, bootlogd is not running. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-04use $() instead of `` for command substitutionsDave Reisner
Signed-off-by: Dave Reisner <d@falconindy.com>
2011-04-23bootlogd: log messages to console during early bootTom Gundersen
This saves all the output during boot to /var/log/boot, which makes debugging boot problems much simpler. The logfile contains all the control (color) characters from boot, so some post processing is in order before the log can be read in a nice format (e.g. less should be able to show this nicely in raw mode). Start bootlogd as soon as the required /dev/pts is mounted. When boot is finished (either at the end of rc.multi or rc.single) create the required lof file (/var/log/boot) if it does not exist. This causes bootlogd to flush the log to disk. Finally, send SIGTERM to bootlogd and clean up after it. Idea-and-original-patch-by: Søren Poulsen <nikorpoulsen@gmail.com> Tested-by: David Goldstein <djg1971@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29whitespace cleanupDave Reisner
* adhere to a consistant vim modeline * use top-right/bottom-left braces for functions Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2010-07-11Bashify rc.multiVictor Lowther
Change the daemon running loop to use a case statement. This is shorter and easier to read. Quote daemon names. Someday, someone may have a daemon name with a space in it.
2009-08-26Make the hook-system a bit more usableThomas Bächler
This patch makes the hook names unique, prefixing them all with the script name (without the 'rc.') It also removes the explicit declarations of all elements of the array, bash assumes "" if they are uninitialized
2009-08-25Implement a hook-system that allows to add custom code to the initscripts at ↵Thomas Bächler
certain places A function add_hook can be called from functions.d to register a hook function. The existing hooks are based on suggestions from Michael Towers (larch) and on the implementation of initscripts-extras-fbsplash which currently uses the strings passed to stat_busy and stat_done for this. More hooks can be added if requested. The implementation uses associative arrays and will thus only work with bash 4 or later
2008-05-27Allow users to ovverride daemon start and stop in rc.multi and rc.shutdownAnton Fiuman
Signed-off-by: Anton Fiuman <llexiw@gmail.com>
2008-05-22Remove source_functions in favor of always sourcing the dirAaron Griffin
This is an obvious oversight on my part - this change allows the overridden functions to work in daemon scripts and anything else that uses /etc/rc.d/functions by itself. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-11-28Source /etc/rc.d/functions.d/ for additional initscript functionsAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2005-11-28moved sysctl config stuff to precede daemon startup (#3530)Judd Vinet
2005-09-15modified netcfg/network scripts -- you can list multiple entries in ↵Judd Vinet
NET_PROFILES that use the same INTERFACE. They will be started one at a time, and the first successful one will be kept.
2005-07-01fixed some spacing in rc.multi -- cosmeticJudd Vinet
2005-06-30added new netcfg stuff for roaming network profilesJudd Vinet
2005-03-11added support for backgrounding daemons at startup with a '@' prefix, ↵Judd Vinet
commented out the ldconfig call at startup, added support for unicode console maps, added a hotplug_ifup() function rc.d/network for hotplug's net.agent to use
2004-01-30added a rc.d/netfs script to mount network-based filesystems from DAEMONSJudd Vinet
2003-12-30network-based mounts are not mounted til rc.multi runsJudd Vinet
2003-10-10added color to rc messages and fixed bug #168Judd Vinet
2002-04-15Added arch-release to filesystemJudd Vinet
Fixed initscripts (again)
2002-04-15*** empty log message ***Judd Vinet
2002-04-15Updated initscripts for multiple ethernet interfacesJudd Vinet
2002-03-24Added rc.d network script to initscriptsJudd Vinet
2002-03-09Added some rudimentary networking stuffJudd Vinet
2002-03-04Initial revisionJudd Vinet