aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
AgeCommit message (Collapse)AuthorFiles
2010-06-06Add nodevtmpfs at rc.shutdown when umountGerardo Exequiel Pozzi1
To avoid message about busy filesystem. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2010-05-03Apply 'encryption: Look for cryptsetup in various places' to rc.shutdown as well2010.05-2Thomas Bächler1
2010-01-24Move shutdown_prekillall hook after the stat_busy message (as per request by ↵2010.01-1Thomas Bächler1
Kurt Bosch)
2009-12-05Check that cryptsetup mapping exists before trying to remove itSolstice d'Hiver1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2009-10-05Always shutdown daemons, regardless of runlevelAaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-26Make the hook-system a bit more usableThomas Bächler1
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ächler1
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
2009-08-22Allow skipping of all hardware clock adjustmentsDan McGee1
For virtualized machines, the hardware clock doesn't actually exist, so all hwclock calls fail and print error messages during system startup, shutdown, and the hourly adjtime cronjob. By explicitly looking for HARDWARECLOCK to be set to 'UTC' or 'localtime', all other values will result in hwclock calls being skipped (e.g. set the variable to 'none'). Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-22Remove USEDIRECTISA and associated codeDan McGee1
man hwclock implies this option is rarely necessary, and (almost) all systems Arch supports surely have a /dev/rtc device and load the rtc driver in the kernel. Even if this is not available, hwclock will fall back to direct I/O requests anyway. As a side note, the adjtime cronjob didn't even respect this setting anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-03Fix array syntax for DAEMONS loopAaron Griffin1
Whoops! Noticed-by: Florian Pritz <f-p@gmx.at> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-30Add _netdev support to netfs (also add glusterfs support)Marco Lima1
The system-wide mount will no longer mount items in fstab marked as _netdev (requires a network device). These _netdev items are handled by the netfs daemon now. Additionally, add support for glusterfs :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-30Shutdown non-rc.conf daemons firstAaron Griffin1
Flip the order in which daemons are shutdown. First we scan for all daemons that are NOT in rc.conf and shut those down (order is based on ls, so it is dependent on LC_COLLATE). Afterwards, we shut down all daemons in rc.conf, in order Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-18Fix incomplete elif statement2009.07-2Allan McRae1
Commit 92cbc62e introduced an incomplete elif statement which caues shutdown to fail. Signed-off-by: Allan McRae <allan@archlinux.org>
2009-06-26Don't change hardwareclock if settings unclearGerhard Brauer1
Don't default to 'localtime' if HARDWARECLOCK is not set to UTC. Check explicit values Ref: FS#15263 Edited-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-07Fix array count/walk in rc.shutdown and rc.single, see #13263Thomas Bächler1
2009-03-10Create /var/lib/misc if it doesn't exist2009.03-2Thomas Bächler1
This is necessary because the filesystem package doesn't currently contain this directory
2009-02-11Fix bug #13205: better random-seed entropyThomas Bächler1
- For the random-seed file location to be more "FHS compliant" is better to put in /var/lib/misc/random-seed (Variable state information, that persists after reboot) than the /var/run/random-seed (Run-time variable data, that not necessarily persists after reboot) for example with /var/run mounted as TMPFS. - The random-seed file permision should be "0600" not "0644" - The size of random-seed acording to random(4) manpage should be the size specified in "/proc/sys/kernel/random/poolsize" in other case 512 bytes.
2008-07-18Remount filesystems RO if umounting failsAaron Griffin1
Just a safeguard, suggested by FS#10947 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-27Allow users to ovverride daemon start and stop in rc.multi and rc.shutdownAnton Fiuman1
Signed-off-by: Anton Fiuman <llexiw@gmail.com>
2008-04-13Always quote $TIMEZONE to fix FS#10178Thomas Bächler1
2008-04-06Fix USEDIRECTISA in rc.shutdown as wellThomas Bächler1
2008-03-08Use full path to binaries everywhereRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-14rc.shutdown: Fix hwclock double callsDan McGee1
Commit 9673449ac0af77751eab62423114f27e7dbc497c added --directisa configuration to rc.shutdown, but didn't remove the old hwclock calls and instead just added a second call. Remove the original calls. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-01-23Use --directisa configuration in rc.shutdown as wellRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-10-21Make daemon shutdown fix more consistent with the other init scripts and ↵Thomas Bächler1
simplify it a bit
2007-10-18'upgpkg: trying to fix #6237,7554,7165,7641,5740'Tobias Powalowski1
2007-05-13upgpkg: initscripts 0.8-10Thomas Bächler1
2006-12-18upgpkg: initscripts 0.8-2Thomas Bächler1
finally fixed 5445
2006-12-17added stat_append to functions, fixed fsck bugs when clock is not setThomas Bächler1
2006-12-16rc.sysinit, rc.shutdown:Thomas Bächler1
- Code cleanup - Added "verbose" commandline option for debugging - Fixed #5968 - Fixed #4648
2006-11-08patch from Paul to disable NIS domainname before shutting down (syslog-ng ↵Judd Vinet1
was hanging). Also added a 2>/dev/null to fsck during startup
2006-10-02'upgpkg: added psmouse workaround for new broken lappies'Tobias Powalowski1
2006-09-26Added --directisa switch to hwclock in rc.shutdownJudd Vinet1
2006-08-04'upgpkg: added kexec support to rc.shutdown'Tobias Powalowski1
2006-06-07'upgpkg: removed kernel24 stuff eg. devfsd support and lvm1'Tobias Powalowski1
2006-01-14added hook for rc.local.shutdownJudd Vinet1
2005-09-15modified netcfg/network scripts -- you can list multiple entries in ↵Judd Vinet1
NET_PROFILES that use the same INTERFACE. They will be started one at a time, and the first successful one will be kept.
2005-06-30added new netcfg stuff for roaming network profilesJudd Vinet1
2005-03-11added support for backgrounding daemons at startup with a '@' prefix, ↵Judd Vinet1
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
2005-01-02fixed a typo in the rc.conf comments0.7Judd Vinet1
2004-07-16updated version header to 0.7, added support for udev and static /dev treesJudd Vinet1
2004-05-27fixed the lvm2 segfault on shutdownJudd Vinet1
2004-05-18added better LVM handlingJudd Vinet1
2004-03-26added -h arg to poweroff to park the hard drivesJudd Vinet1
2004-02-29added --ignorelockingfailure during startup vgchange (LVM2)0.6Judd Vinet1
2004-02-29updated for LVM2Judd Vinet1
2004-02-23added setup commands for LVM2Judd Vinet1
2004-02-19added cleanups by Leif AskelandJudd Vinet1
2003-12-21upgpkg: initscripts 0.6Judd Vinet1
2003-10-10added color to rc messages and fixed bug #168Judd Vinet1