Age | Commit message (Collapse) | Author | Files |
|
|
|
Error/stat_fail when $TIMEZONE is invalid instead of skipping silently.
|
|
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
Since we're declaring a PATH anyways, we may as well use it. This gives
us immunity against binaries moving around, as in the recent case of
iproute2. A few other minor, associated, tweaks to go along with this:
* any -x tests are modified to use 'type -P' to resolve the path before
checking for execute permission
* any pidof checks are stripped of paths as well.
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This fixes FS#23889.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
As suggested by seblu:
- add comment to explain what we unmount and why, and
- use /bin/grep rather than grep
Also add some more redirects to /dev/null.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This fixes FS#19783.
[tomegun:
some adjustments:
- always umount ramfs as we never mount /dev as ramfs; and
- don't umount /dev/pts as it might still be useful.]
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
If this bug is still present (after more than 4 years) it should be
reported and fixed in syslog-ng.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
If this bug is still present (after more than 4 years) it should be
reported and fixed in the kernel.
Dave points out that this was fixed by kernel commit a1cec06177386
(which is in 2.6.21 and was backported to at least 2.6.19.6).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Conflicts:
rc.shutdown
rc.sysinit
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
* 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>
|
|
|
|
Monitoring does not work when /var is mounted ro, so only enable monitoring when we know that /var is rw.
Thanks to Thomas Bächler for pointing this out.
|
|
This avoids problems with lack of rw filesystems.
Solves: #FS18153.
|
|
Split out reading /etc/crypttab and procssing the individual lines into
their own helper functions, and bashify the resulting shorter code.
Processing this file is still ugly, though. :(
|
|
Shorten domainname conditional execution.
Use parameter expansion instead of dirname.
Clean up entropy pool saving and system clock saving.
Flatten LVM deactivation if block
|
|
Simplify it, and move that shared code into functions.
Parsing the output of ls is Bad, especially when globbing works just as well
and does not get confused by odd characters in filenames.
bash has arithemetic for loops. Use them instead of while loops for iterating
over arrays.
|
|
To avoid message about busy filesystem.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
|
|
Kurt Bosch)
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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
|
|
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
|
|
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>
|
|
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>
|
|
Whoops!
Noticed-by: Florian Pritz <f-p@gmx.at>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
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>
|
|
Commit 92cbc62e introduced an incomplete elif statement which caues
shutdown to fail.
Signed-off-by: Allan McRae <allan@archlinux.org>
|
|
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>
|
|
|
|
This is necessary because the filesystem package doesn't currently contain this directory
|
|
- 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.
|
|
Just a safeguard, suggested by FS#10947
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Anton Fiuman <llexiw@gmail.com>
|
|
|
|
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
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>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
simplify it a bit
|
|
|
|
|
|
finally fixed 5445
|
|
|
|
- Code cleanup
- Added "verbose" commandline option for debugging
- Fixed #5968
- Fixed #4648
|