aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
Commit message (Collapse)AuthorAgeFilesLines
* cgroup support (<jsafrane@redhat.com>)Bill Nottingham2009-03-061-2/+17
|
* Fix various issues with dmraid handling (#485895, <hdegoede@redhat.com>)Bill Nottingham2009-03-041-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've been doing a lot of work on mkinitrd's dmraid support lately some of the lessons learned there also apply to the activation of (not used for /) dmraid arrays in rc.sysinit, this will esp. help the livecd proerly activating and using dmraid sets. The patch fixes the following issues: 1) rc.sysinit (and mkinitrd used to) calls dm_resolve_name() on the output of dmraid, this is not necessary as dm_resolve_name is only needed when the name is /dev/dm-#, it is actually harmful as dm_resolve_name sometimes fails when used like this, causing us to fail to activate dmraid sets 2) rc.sysinit does not remove the partitions from the raw disks used in a raidset the initrd used to use special nash functionality to tell the kernels to forget about the partitions of the raw disks it had scanned at boot. The issue here is, say we have a mirror of sda and sdb, and that mirror has 2 partitions. Then the kernel when scanning the raw disks will find sda1,sda2,sdb1,sdb2. But we do not want anything using those, they should use the devicemapper versions as those are mirrored! I've even seen mounting by LABEL / UUID do the wrong thing by using the raw partitions instead of the raidset partitions. I've recently done a patch to dmraid adding a --rm_partitions cmdline option which makes dmraid do the ioctl which makes the kernel forget about the partitions of the rawdisk (which in turn makes udev remove the device nodes). This way we no longer need the nash magic. Part of my rc.sysinit patch is adding --rm_partitions to the dmraid invocation 3) rc.sysinit uses dmraid -p, which tells dmraid to not setup device maps for the partitions of the raidset and then kalls kpartx to setup the device maps for the partitions. This can be simplified by removing the -p argument to dmraid 4) with all these changes in place there is no longer a reason to loop, a single dmraid invocation is enough. p.s. AFAIK with this patch the last user of dm_resolve_name is gone, so that function can be removed. Better check twice though.
* __pids_var_run: Handle multi-line pid files correctly (#473287)Bill Nottingham2008-12-011-4/+9
| | | | | | | We were only reading the first line of pid files. Given that even those first lines could have multiple pids, this *shouldn't* break anything, but there may be some scripts with multi-line pid files that aren't expecting this.
* Remove %config from init scripts, network scripts. (#225900)Bill Nottingham2008-09-301-0/+0
| | | | Also, fix permissions on rc.d/init.d/functions.
* Use the pidfile before running pidof in status(). (#463205)Bill Nottingham2008-09-241-4/+6
| | | | This matches the behavior of killproc.
* Just use plymouth directly, not the rhgb-client wrapper.Bill Nottingham2008-09-231-5/+5
| | | | This fixes the fact that the semantics of --details changed.
* Remove dead code.Bill Nottingham2008-09-171-18/+0
|
* Properly hide the plymouth splash if needed.Bill Nottingham2008-07-281-12/+0
| | | | Also, remove some old rhgb code.
* Don't export GRAPHICAL - plymouth is for all modes.Bill Nottingham2008-06-191-3/+1
| | | | Don't try to start rhgb.
* Revert "Remove rhgb support."Bill Nottingham2008-06-191-0/+20
| | | | This reverts commit c722b0ee95746aa9289efd40bbdd23a87d1e5dee.
* Make resolve_dm_raid() work when your original raid was set up withPeter Jones2008-05-141-0/+7
| | | | parameters generated by an older dmraid's "dmraid -ay --test".
* Remove rhgb support.Bill Nottingham2008-05-131-20/+0
|
* Various minor optimizations to speed up boot. (<arjan@infradead.org>)Bill Nottingham2008-02-261-2/+4
| | | | | | | | Notable: - separate [ "$variable" ] tests from [ -f ... ] - don't grep init scripts - cache the information from /sbin/consoletype - simplify 'confirm' handling
* clean up some extraneous delays (#219816)Bill Nottingham2007-10-081-4/+10
|
* more fixes (#220087)Bill Nottingham2007-09-251-1/+1
|
* optimize out some excess greps (<harald@redhat.com>)Bill Nottingham2007-08-291-0/+12
|
* typoBill Nottingham2007-08-291-1/+1
|
* make __readlink as simple as possible. Seems to match the /usr/binBill Nottingham2007-08-291-18/+1
| | | | implementation (which does not normalize for full paths)
* - added support for cryptsetup-uuids (bug #242078)Harald Hoyer2007-08-141-0/+21
|
* avoid calling unicode_start unnecessarily often during startup/shutdown ↵Nils Philippsen2007-07-171-1/+3
| | | | which causes certain monitor/video card combos to flicker heavily (#237839)
* fix or_IN and similar locales (#212219)Bill Nottingham2006-10-261-15/+1
|
* don't write to gdmfifoBill Nottingham2006-09-271-1/+0
|
* - "<<<" doesn't work without a read-write filesystem. No, I'm serious.Peter Jones2006-08-311-4/+3
|
* - make resolve_dm_name ignore core logger block size when comparing rulesPeter Jones2006-08-311-4/+10
| | | | | | | - slightly more readable formatting - make "line" and "newline" the same variable - kill 2 exec() calls, add 1. - shell quoting rill ROT YOUR BRANE.
* catch more errors from dmraid (#200683)Bill Nottingham2006-08-071-1/+1
|
* Consistently exclude backup files when globbingMiloslav Trmac2006-07-271-0/+12
|
* deref symlinks in get_numeric_devBill Nottingham2006-07-211-1/+1
|
* Add a configurable delay for killproc() (#198429, <jorton@redhat.com>)Bill Nottingham2006-07-201-4/+9
|
* Fix garbled output of rc.sysinit in rhgb (#192604, patch by Tony NelsonMiloslav Trmac2006-07-091-1/+1
| | | | <tonynelson@georgeanelson.com>)
* Fix daemon --pidfile=... (#195341, patch by Steven AugartMiloslav Trmac2006-06-171-1/+1
| | | | <saugart@mazunetworks.com>)
* Clarify killproc usage message (#193711)Miloslav Trmac2006-06-051-1/+1
|
* Fix handling of mount points with white space (#186713):Miloslav Trmac2006-05-081-1/+60
| | | | | | | | | | | | | - src/fstab-decode.c, src/fstab-decode.8: New files. - src/Makefile: Build and install fstab-decode. - initscripts.spec: Add fstab-decode to %files - rc.d/init.d/functions (fstab_decode_str): New function. (__umount_loop, __umount_loopback_loop): Factor out from copy&pasted copies. (action): Fix command quoting. - rc.d/rc.sysinit: Correctly quote and decode mount points. - rc.d/init.d/halt: Use __umount_* and fstab-decode. (action): Rename from runcmd. Fix command quoting. - rc.d/init.d/netfs: Use __umount_*.
* (failure, passed, warning, action): Make variables local, fixes runningMiloslav Trmac2006-03-271-3/+5
| | | | quotacheck after fsck has repaired something (#168118).
* (killproc): Respect -p when removing the pid fileMiloslav Trmac2006-03-271-1/+1
|
* (status): Try the PID from the PID file if (pidof) fails (#182623)Miloslav Trmac2006-03-191-6/+9
|
* - filter out another "no" message from dmraid. We need to fix dmraid'sr8-29Peter Jones2006-02-141-2/+2
| | | | | | exit status in these cases and use that in the future... - add path to one dmraid call - bump version, add changelog
* - check for "No devices found" when calling dmsetupPeter Jones2006-02-131-1/+1
|
* (get_numeric_dev): On second thought, write directly what we want awk to do.Miloslav Trmac2006-02-021-1/+1
|
* fix sendmail startupBill Nottingham2006-02-021-1/+1
|
* Eliminate creating the second awk process in get_numeric_dev()Miloslav Trmac2006-02-011-1/+1
|
* - ignore the "I couldn't find anything to do" line, which we should removePeter Jones2006-01-311-1/+1
| | | | from dmraid entirely.
* remove references to /usr/X11R6/bin (#177938)Bill Nottingham2006-01-311-1/+1
|
* - two more silly typosPeter Jones2006-01-311-2/+2
|
* - don't use cutPeter Jones2006-01-311-2/+2
|
* - check for active dmraid devices by table (rather than name) beforer8-21Peter Jones2006-01-311-0/+29
| | | | activation
* Add -p to status() (#134363)Miloslav Trmac2006-01-271-5/+10
|
* - Separate /var/run/*.pid handling and pidof calls to private functionsMiloslav Trmac2006-01-261-76/+96
| | | | | | | | | | (#63440) - Update to implement current LSB specification for init script functions, notably including -p pidfile (#99325, #134363) (based in part on patch by Tobias Burnus) - Misc. cleanups: - Fix failures when run with (set -u) - Mark more variables as local
* make sure corefile limiting works for user processes as well (#166511, ↵Bill Nottingham2005-10-031-3/+3
| | | | <ville.skytta@iki.fi>)
* change translated string (#54682)Bill Nottingham2005-09-291-3/+3
|
* handle odd quoting in args (#161316, <stransky@redhat.com>)Bill Nottingham2005-06-231-1/+1
|