aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
Commit message (Collapse)AuthorAgeFilesLines
* network: Treat other tunnel interfaces, fixes ifdown stageRodrigo Freire2016-11-151-0/+10
| | | | | | | | | | | | This patch is a complement of commit 5e9dd516e2e0 ("add bonding & xDSL to the list of devices brought up afterwards (#97030,#91399)"), ensuring that GRE and IPIP tunnels are brought up after base interfaces are up, and bring down before the underlying interface goes down. Signed-off-by: Rodrigo Freire <rfreire@redhat.com> Resolves: RHBZ #1315018
* netconsole: resolve domain name via 'getent' instead of 'hosts'David Kaspar [Dee'Kej]2016-11-011-3/+20
| | | | Resolves: RHBZ #1278519
* Support boolean values in is_true() & is_false() functionsDavid Kaspar [Dee'Kej]2016-10-271-2/+2
|
* 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-032-20/+64
| | | | 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-192-58/+75
| | | | | | | | 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
* init.d/halt: give init some time to reexecuteLukas Nykryn2015-10-271-0/+2
| | | | Resolves: #1259873
* 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
* netfs: don't race NFS umount to network shutdownBenjamin Coddington2015-02-271-5/+57
| | | | | | | | | | | | | | RHEL6 customers have been reporting hangs when restaring due to IO for NFS filesystems being unable to flush after network shutdown. The current __umount_loop allows newly created processes to continue to open files to NFS filesystems, which can create thisi problem. Change the umount logic to perform a MNT_DETACH, then search for processes that have open file descriptors on the detached filesystems. The detach prevents newly created processes from opening new files during our search. Finally, after making every attempt to clean up processes with open files, perform a sync to flush NFS filesystems before continuing onto network shutdown.
* network: report that we can't shut down network for root on netfsLukas Nykryn2015-02-271-0/+1
| | | | | Conflicts: rc.d/init.d/network
* netconsole: lets run earlierLukas Nykryn2015-02-041-1/+1
|
* halt: add delay after upsdrvctl shutdownMichal Hlavinka2015-02-041-0/+2
|
* init.d/functions: fix typo in pid_dirLukas Nykryn2014-06-181-1/+1
|
* netfs: implicitly handle glusterfs as a network filesystemdLukas Nykryn2014-04-301-0/+13
|
* 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
|
* rc.sysinit: use 'vgchange --ignoreskippedcluster'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
|
* sync disks before halt (#1006294)Lukas Nykryn2013-10-101-0/+2
|
* Revert "do not run fsck in netfs multiple times (#825190)"Lukas Nykryn2013-08-091-5/+1
| | | | This reverts commit 542108e4cc22662701fd98e45ad13ece7a84baa1.
* do not run fsck in netfs multiple times (#825190)Lukas Nykryn2013-07-221-1/+5
|
* netfs: do not force NFS exports to be mounted before _netdev mountsHarshula Jayasuriya2013-07-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current /etc/init.d/netfs mounts the following entries in /etc/fstab not in the order desired by the sysadmin: -------------------------------------------- /dev/san_test/san_vol /mnt/san ext3 _netdev 0 0 nas:/vol/vol7/afsdb /mnt/san/nfs nfs _netdev 0 0 -------------------------------------------- => The NFS filesystem needs to be mounted after the SAN filesystem. Looking at /etc/init.d/netfs: -------------------------------------------- 37 start) 38 # Let udev handle any backlog before trying to mount file systems 39 /sbin/udevsettle --timeout=30 40 [ -n "$NFSFSTAB" ] && 41 { 42 [ ! -f /var/lock/subsys/portmap ] && service portmap start 43 action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4 44 } 45 [ -n "$SMBFSTAB" ] && action $"Mounting SMB filesystems: " mount -a -t smbfs 46 [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs 47 [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs 48 [ -n "$NETDEVFSTAB" ] && 49 { ... 98 } 99 touch /var/lock/subsys/netfs 100 # The 'no' applies to all listed filesystem types. See mount(8). 101 action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs -------------------------------------------- => The NFS filesystems are mounted *before* _netdev regardless of what the sysadmin wants. So, let's defer all the mounts, NFS, SMB, CIFS, etc, to the final mount -a and only do all the necessary prereqs in the conditional clauses. This gives the sysadmin the ability to order netfs mounts as they see fit. Signed-off-by: Harshula Jayasuriya <harshula@redhat.com>
* 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
|
* use vgchange -aay in rc.sysinit and netfs init scriptLukas Nykryn2012-10-081-1/+1
|
* 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
|
* Pass useful arguments to halt.local (#554392)Václav Pavlín2012-08-071-3/+4
|
* Turn off UPS in powerfail situation (#754984, <robert@fedoraproject.org>)Lukas Nykryn2012-02-131-0/+5
| | | | | | Patch by Robert Scheck <robert@fedoraproject.org> for initscripts >= 9.03.23, which adds the required support for apcupsd to the halt initscript to turn off the UPS in case of a powerfail situation.
* Do not check mounted filesystems (#745224)Lukas Nykryn2012-02-131-1/+1
|
* Just exit on first response (#744734)Bill Nottingham2012-02-131-1/+1
| | | | | | Conflicts: rc.d/init.d/netconsole
* Add cifs to check for network filesystem (#760018).Bill Nottingham2012-02-131-4/+2
| | | | Use findmnt to simplify the code.
* plymouth lives in /bin. (#702814)Bill Nottingham2011-08-162-7/+7
| | | | | | Conflicts: rc.d/rc.sysinit
* Don't mount gfs2 in netfs (#689593)Bill Nottingham2011-08-151-1/+1
|
* VLAN, etc. interfaces can be slaves; check for being a slave first. (#703475)Bill Nottingham2011-08-151-4/+4
| | | | | | Conflicts: rc.d/init.d/network
* don't match filesystem types in hostnames (#703203, <jmueller@data-tronics.com>)Bill Nottingham2011-08-151-1/+2
|
* load static arp entries from ethers file (#696788)Petr Lautrbach2011-08-151-0/+4
|
* Use net_log where appropriate.Bill Nottingham2011-08-151-1/+1
|
* Add a comment explaining the oft-confused -t nox,y,z mount syntax.Bill Nottingham2011-08-151-0/+1
| | | | | The 'no' applies to all listed filesystem types, not just the first. Since this comes up in bugzilla once every month or two, explicitly comment it.
* Move sysctl.conf/sysctl.d handling to a function, call it where appropriate. ↵Bill Nottingham2011-08-152-2/+11
| | | | (#593211, continued)