aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
Commit message (Collapse)AuthorAgeFilesLines
* Use halt's return code to avoid unnecessary sleeping. (#524359, ↵Bill Nottingham2009-09-211-2/+5
| | | | <hdegoede@redhat.com>)
* Don't kill mdmon on shutdown. (#524357, <hdegoede@redhat.com>)Bill Nottingham2009-09-211-2/+16
| | | | Horray for bad kernel <-> userspace interactions.
* Add a -l option to status to pass the lock file name. (#521772)Bill Nottingham2009-09-081-3/+10
|
* Don't try and save mixer settings if it's not writable. (#515771)Bill Nottingham2009-08-241-1/+1
|
* Don't call a function that doesn't actually do anything.Bill Nottingham2009-08-211-5/+0
|
* Nuke redundant declaration of actionVictor Lowther2009-07-301-11/+0
|
* Use $() instead of `` for process expansion.Bill Nottingham2009-07-305-17/+17
| | | | Adapted from <victor.lowther@gmail.com>.
* Redirect bash errors on 'unset' to /dev/null. (#482888)Bill Nottingham2009-06-181-1/+1
|
* cgexec has moved to /bin (#495715)Bill Nottingham2009-04-141-2/+2
|
* Drop smbfs support - both the kernel module and the userspace helper are ↵Bill Nottingham2009-04-021-14/+2
| | | | long gone.
* Support MD on iSCSI (this *SHOULD* be udev rules, but alas) (#480627)Bill Nottingham2009-03-111-0/+3
|
* 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.
* Use the same arguments for kpartx that we do in rc.sysinit.Bill Nottingham2009-02-061-1/+1
| | | | Noticed when reviewing (#448919)
* Use a leading path marker when sourcing files. (#482826)Bill Nottingham2009-01-281-1/+1
| | | | bash 4 breaks the prior code.
* Don't unmount the nfsd filesystem when unmounting nfs client mounts. ↵Bill Nottingham2009-01-271-1/+1
| | | | (#481794, <sprabhu@redhat.com>)
* Bring up ipsec interfaces last. (#481733)Bill Nottingham2009-01-271-8/+16
|
* Return success/failure correctly from start/stop. (#480677)Bill Nottingham2009-01-201-1/+7
|
* Fix typo. (#480799)Bill Nottingham2009-01-201-1/+1
|
* Determine reboot/halt via existing INIT_HALT environment variable. (#475227)Bill Nottingham2008-12-091-1/+1
| | | | No more magic files needed. In fact, I'm not sure they ever were. Whoops.
* __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.
* Tweak return codes (#242912)Bill Nottingham2008-11-261-2/+2
| | | | We'll see what breaks.
* Don't mkswap on halt (#469823)Bill Nottingham2008-11-041-2/+0
| | | | | Doing so blows away any label or UUID on the partition, which makes specifying encrypted swap by label or UUID fail miserably.
* Fix code that causes a syntax error on multiple cards. (#469156)Bill Nottingham2008-10-301-2/+0
| | | | | Just remove the compatibility case, and conflict with older alsa-utils that would require it.
* Add some LSB description stuff. (#225900)Bill Nottingham2008-09-301-0/+2
|
* Add some LSB description stuff. (#225900)Bill Nottingham2008-09-301-0/+2
|
* 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-232-9/+9
| | | | This fixes the fact that the semantics of --details changed.
* Use alsactl to save sound settings. (#462677, <jkysela@redhat.com>)Bill Nottingham2008-09-231-3/+4
|
* Check that we're on a tty before trying to start a repair shell. (#463161)Bill Nottingham2008-09-231-2/+2
| | | | | | If netfs isn't running from a tty (say, from NetworkManager), the attempt to start a shell will fail, and we'll immediately fall through to rebooting. That isn't good.
* Remove dead code.Bill Nottingham2008-09-171-18/+0
|
* https://bugzilla.redhat.com/show_bug.cgi?id=433702Harald Hoyer2008-09-162-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to init scripts to better support stateless: --rc.sysinit-- - don't update mtab in a r/o root - mount on sys and /dev/pts returns EBUSY on a readonly root - [ -n $CLIENTSTATE ] is always returning true, causing an unnecessary timeout --network-- - /etc/mtab may not have any mount information in the readonly-root cause, but the root mount is likely to be a network mount. Without this, nfs hangs the reboot process. --halt-- - don't try and update a read-only mtab --rwtab-- - /var/empty/sshd/etc/localtime needs to be overwritten by sshd at startup - /var/lib/random-seed is written to at shutdown; this fixes the error but doesn't return the functionality lost in a r/o /var/lib.
* https://bugzilla.redhat.com/show_bug.cgi?id=447928Harald Hoyer2008-09-161-1/+1
| | | | | | | | All networking scripts from /etc/sysconfig/network-scripts call logger without full path. This can prevent system from booting if let's say dcc is installed when compiled with wrong parameters and installs /usr/sbin/logger (see bellow) It's not really a bug but this can be easily prevented. All /etc/init.d scripts use full path for logger network-scripts should use it also
* Use the full path for arping.Bill Nottingham2008-09-021-1/+1
|
* Don't say that we're shutting off crypto if we aren't actually doing it.Bill Nottingham2008-08-291-3/+2
|
* Properly hide the plymouth splash if needed.Bill Nottingham2008-07-281-12/+0
| | | | Also, remove some old rhgb code.
* remove references to static dmraid/multipath binaries (#453987)Bill Nottingham2008-07-031-2/+2
|
* 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-192-0/+24
| | | | This reverts commit c722b0ee95746aa9289efd40bbdd23a87d1e5dee.
* Remove dead codeBill Nottingham2008-05-231-16/+0
|
* Merge branch 'master' of ssh://git.fedorahosted.org/git/initscriptsBill Nottingham2008-05-151-0/+7
|\
| * 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".
* | Don't unmount sysfs in halt. (#446292)Bill Nottingham2008-05-151-1/+1
|/
* Remove rhgb support.Bill Nottingham2008-05-132-24/+0
|
* do a much better check for network availabilityBill Nottingham2008-04-231-3/+1
| | | | Avoids nasty 'FAILED' messages when using NetworkManager.
* Remove $local_fs from the list of provides.Bill Nottingham2008-04-011-1/+1
| | | | | | | The concept of local filesystems on top of remote network filesystems is bizarre enough that it's almost certainly not necessary for 'system' things. Removing the $local_fs provide (making it implicitly provided, like $time) simplifies some of the dependency issues.
* don't use /etc/sysconfig/clock (#438337)Bill Nottingham2008-03-201-28/+1
|
* Umount 'ncp' filesystems as well (#437117)Bill Nottingham2008-03-121-1/+1
|
* Disable by default in favor of NetworkManager.Bill Nottingham2008-03-101-1/+1
|