aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
Commit message (Collapse)AuthorAgeFilesLines
* functions: parse -d firstLukas Nykryn2016-04-121-1/+2
|
* functions: fix ignored delay in killprocLukas Nykryn2016-04-111-1/+6
|
* netfs: only unmount loopback device mounted on top of netdev or with ↵Lukas Nykryn2016-02-031-8/+61
| | | | back-file on netdev
* init.d/functions: fix a possible race between checking file and reading itLukas Nykryn2016-02-011-2/+2
|
* functions: improve killing loopsLukas Nykryn2016-01-191-57/+76
| | | | Resolves: #1284724
* netfs: tweak nfs umountLukas Nykryn2016-01-191-0/+70
| | | | | | | | We want to run one round of regular umount before we will look for open descriptors. In the case that there are some stale mounts, without any open file descriptors on them we will avoid blocking stat call later. Resolves: #1296900
* clarify daemon() usage messageFilip Krska2015-10-271-2/+2
| | | | Resolves: #1212751
* Use new -m option to pidof. Require new enough sysvinit-tools. (#632321)Bill Nottingham2015-03-021-2/+2
| | | | | Conflicts: initscripts.spec
* rc.sysinit: be more verboseLukas Nykryn2015-02-271-0/+13
|
* init.d/functions: rc.debug option to debug initscriptsLukas Nykryn2015-02-271-0/+6
| | | | | Conflicts: rc.d/init.d/functions
* init.d/functions: fix typo in pid_dirLukas Nykryn2014-06-181-1/+1
|
* init.d/functions: check parent dir of pid file for accessibilityLukas Nykryn2014-04-301-0/+3
| | | | | Conflicts: rc.d/init.d/functions
* pids_var_run: handle '(deleted)'Lukas Nykryn2014-03-261-1/+1
|
* umount-loop: make sure that we don't kill our own processLukas Nykryn2014-03-261-1/+1
|
* umount-loop: don't use xargsLukas Nykryn2014-03-261-1/+1
|
* init.d/functions: add -b optin to status and killproc (#1047948)Lukas Nykryn2014-01-201-5/+30
|
* Killproc -d should parse same values as sleepLukas Nykryn2013-07-151-2/+6
|
* Make killproc more granular when delay is passed. (#428029, <xjakub@fi.muni.cz>)Bill Nottingham2013-07-151-6/+12
|
* script should not kill itself during shutdown (#862788)Lukas Nykryn2012-10-081-1/+1
|
* Revert patches which should not be in 6.4Lukas Nykryn2012-10-081-18/+8
| | | | | | | | | | | | | | | | | | | | | | Revert "Process rule6-* for sit devices (#840009)" This reverts commit f082f9e64eadbf68ef9bb67744c97c0974af9115. Revert "securetty: check if the device is in the file before attempting to write to it" This reverts commit 10c72ce532c1d4f6d0b17fdc9448c9bd2d0b5ef5. Revert "Killproc -d should parse same values as sleep" This reverts commit 763b7dcf6bf9e47d90546be1aabf1f724dd527f8. Revert "Make killproc more granular when delay is passed. (#428029, <xjakub@fi.muni.cz>)" This reverts commit 6e62c51f3162081cc05ef546929aa98b8448b1cb. Revert "Allow dhclient configuration files for DHCPv6 as well. (#815676)" This reverts commit 9987361e94ec6f26e557053b27af6e43a9ee13e1.
* Killproc -d should parse same values as sleepLukas Nykryn2012-08-071-2/+6
|
* Make killproc more granular when delay is passed. (#428029, <xjakub@fi.muni.cz>)Bill Nottingham2012-08-071-6/+12
|
* plymouth lives in /bin. (#702814)Bill Nottingham2011-08-161-5/+5
| | | | | | Conflicts: rc.d/rc.sysinit
* Move sysctl.conf/sysctl.d handling to a function, call it where appropriate. ↵Bill Nottingham2011-08-151-0/+9
| | | | (#593211, continued)
* don't pass '' to umount (#682879)Petr Lautrbach2011-03-161-1/+1
|
* Don't do force/lazy umount for the first nfs umount. (#676851, ↵Bill Nottingham2011-03-101-2/+2
| | | | | | | <jlayton@redhat.com>) This can cause hung tasks that aren't cleaned up or killed properly, as their dangling references won't get caught.
* Clarify description (#637176)Bill Nottingham2010-09-241-1/+1
|
* Also init_crypto for encrypyed network block devices. (#605600)Bill Nottingham2010-06-231-0/+160
|
* Handle permission denied on reading PID file. (#595597)Bill Nottingham2010-06-091-0/+4
|
* Add functions to check shvar-style variables.Bill Nottingham2010-06-041-0/+21
|
* Correct the fix for not clearing environment with runuser. (#203010, #564093)Bill Nottingham2010-05-191-1/+1
| | | | This changes runuser to not use a login shell. We'll see what happens.
* Handle being unable to read a specified pid file. (#584575)Bill Nottingham2010-04-261-2/+8
|
* Pass -m to runuser, so the environment is not cleared. (#203010, #564093)Bill Nottingham2010-02-111-1/+1
| | | | | There could conceivably be consequences to this, but it matches the behavior of the non-runuser case.
* Add a -l option to status to pass the lock file name. (#521772)Bill Nottingham2009-09-081-3/+10
|
* Use $() instead of `` for process expansion.Bill Nottingham2009-07-301-1/+1
| | | | 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
|
* 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