aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
Commit message (Collapse)AuthorAgeFilesLines
* sysconfig/init* files droppedDavid Kaspar [Dee'Kej]2017-10-161-2/+11
| | | | | Users can still create the /etc/sysconfig/init file manually to override the default values, which are now taken from init.d/functions.
* init.d/functions: is_true() & is_false() extended by ON/OFF supportDavid Kaspar [Dee'Kej]2017-08-071-2/+2
| | | | | In some cases we are using "on" or "off" as values. is_true() and is_false() can be used for evaluation of these values as well.
* init.d/functions: convert2sec() function addedDavid Kaspar [Dee'Kej]2017-08-071-0/+16
| | | | | | | | | | And network-scripts/network-functions was patched to use convert2sec(). This function can be used to convert the value of its first parameter to a number of seconds - based on the time unit (specified as the second parameter). This is mostly useful for converting values for use with the sleep(1).
* Replace /var/run with /run everywhereZbigniew Jędrzejewski-Szmek2017-08-031-5/+5
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1471489
* Add *.old to list of ignored filesDavid Kaspar [Dee'Kej]2017-05-251-2/+2
|
* Replace usleep(1) calls with sleep(1) callsDavid Kaspar [Dee'Kej]2017-05-251-2/+2
| | | | | The time units had to be manually converted from microseconds to seconds. Hopefully this was done right.
* killproc/status: add missing '-b <binary>' optionDavid Kaspar [Dee'Kej]2017-03-281-5/+30
| | | | Taken from RHEL-6.9, for forward compatibility.
* Support boolean values in is_true() & is_false() functionsDavid Kaspar [Dee'Kej]2016-10-121-2/+2
|
* functions: remote tabs and fix spacingDavide Cavalca2016-10-121-430/+435
|
* functions: more reliable systemd detection logicDavide Cavalca2016-10-061-1/+1
|
* functions: systemctl show now returns an error when unit does not existLukas Nykryn2016-08-021-1/+2
|
* functions: improve killing loopsLukas Nykryn2016-06-021-25/+73
|
* init.d/functions: end with 0Lukas Nykryn2015-11-091-0/+1
|
* service: improve status and stop function for daemon with intscriptsLukas Nykryn2015-09-111-1/+8
| | | | | | When daemon abnormally dies systemd leaves it in active state. This is due to support of initscripts like network. We can guess if it is a daemon or not.
* init.d/functions: reload systemd if it can't see an initscriptLukas Nykryn2015-08-261-0/+4
| | | | | | | | In good old times it was enough to drop initscript to /etc/rc.d/init.d and call service start. Now you need to reload systemd before. For compatibility purposes we should check if systemd knows about the initscript and if not call systemctl daemon-reload automatically.
* clarify daemon() usage messageFilip Krska2015-05-041-2/+2
|
* init.d/functions: rc.debug option to debug initscriptsLukas Nykryn2015-02-271-0/+3
|
* init.d/functions: check parent dir of pid file for accessibilityLukas Nykryn2014-04-301-0/+3
|
* Killproc -d should parse same values as sleepLukas Nykryn2012-08-071-2/+6
|
* Drop more unused functions, and drop old s-c-n profile support directories.Bill Nottingham2012-08-061-34/+0
| | | | The profile support itself was removed a while ago.
* Remove more now-unused functions from init.d/functions (crypto/dm)Bill Nottingham2012-08-061-180/+0
|
* Drop fstab-decode and getkey; no longer used.Bill Nottingham2012-08-061-65/+0
| | | | Drop the umount loop from rc.d/init.d/functions.
* Move default sysctl.conf to /usr/lib/sysctl.d, adjust things accordingly. ↵Bill Nottingham2012-04-201-5/+20
| | | | | | (#760254) Also, update apply_sysctl to 1) use systemd-sysctl if it's there 2) imitate it if it's not.
* If /dev/stderr also isn't readable, don't bother with consoletype.Bill Nottingham2012-03-091-1/+1
|
* If locale.conf exists, use it. (#706756, in part)Bill Nottingham2011-10-251-1/+1
| | | | | | | | | | | | | systemd's algorithm on startup is: - if /etc/locale.conf is parseable, use that - otherwise, use /etc/sysconfig/i18n Given that we have a heirarchy of system -> user settings here, simply go: ~/.i18n > /etc/locale.conf > /etc/sysconfig/i18n Add some documentation as well.
* Only bother with consoletype if we're actually connected to something that's ↵Bill Nottingham2011-09-191-2/+2
| | | | | | console-ish. (#657869) If we're connected to a socket, or a pipe, or a file, or anything else - assume dumb mode.
* plymouth lives in /bin. (#702814)Bill Nottingham2011-08-151-5/+5
|
* Clean up some noise if stderr isn't available.Bill Nottingham2011-06-021-2/+2
|
* fuser -k defaults to -9; set the initial pass to kill -15. (#703457)Bill Nottingham2011-05-101-2/+2
|
* Fix mishandled argument to fstab-decode. (#685137)Bill Nottingham2011-03-151-1/+1
|
* Don't do force/lazy umount for the first nfs umount. (#676851, ↵Bill Nottingham2011-03-071-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.
* Fix path to sysconfig.txt in comments.Ville Skyttä2011-03-011-1/+1
|
* Move sysctl.conf/sysctl.d handling to a function, call it where appropriate. ↵Bill Nottingham2011-02-281-0/+9
| | | | (#593211, continued)
* Tweak waiting times slightly. (#596451)Bill Nottingham2011-02-281-2/+2
|
* Make killproc more granular when delay is passed. (#428029, <xjakub@fi.muni.cz>)Bill Nottingham2011-02-281-6/+12
|
* Add support for noauto crypt devices, to mirror systemd.Bill Nottingham2011-02-281-0/+3
|
* Drop some unnecessary command invocations.Ville Skyttä2011-02-281-3/+3
|
* Allow for plymouth to enter non-LUKS passphrases (#621158, ↵Bill Nottingham2011-02-281-4/+10
| | | | <redhat-bugzilla@camperquake.de>)
* systemctl: honour $SYSTEMCTL_IGNORE_DEPENDENCIESLennart Poettering2011-02-171-1/+6
| | | | | | | | | | | | | | | | Here's a patch for initscripts: If SYSTEMCTL_IGNORE_DEPENDENCIES is set, pass --ignore-dependencies to systemctl. This allows programs which invoke /sbin/service to get more SysV-like behaviour, i.e. where starting a service does not pull in any dependencies and honours no ordering. By default we continue to honour the dependencies since this is usually safe and allows other software to hook into all services regardless by who they are started. This is the result of a discussion with the IPA people, Simo Sorce in particular.
* CONSOLETYPE - check read access to /dev/stderr (#650103)Petr Lautrbach2010-12-011-1/+7
|
* Squash warning on opening /dev/stderr (#650103)Bill Nottingham2010-11-301-1/+1
|
* Clarify description (#637176)Bill Nottingham2010-09-241-1/+1
|
* Use new -m option to pidof. Require new enough sysvinit-tools. (#632321)Bill Nottingham2010-09-141-2/+2
|
* Properly group tests.initscripts-9.18-1Bill Nottingham2010-09-031-1/+1
|
* fix detection of systemd with new cgroup locationPetr Lautrbach2010-09-021-1/+2
|
* If systemd is running, redirect start/stop/condrestart/etc. to systemctl. ↵Bill Nottingham2010-08-241-2/+50
| | | | (#612728)
* functions: check type of stdout/stderr instead of stdinLennart Poettering2010-08-191-1/+3
|
* Also init_crypto for encrypyed network block devices. (#605600)Bill Nottingham2010-06-231-0/+160
|
* Add functions to check shvar-style variables.Bill Nottingham2010-06-041-0/+21
|
* Handle permission denied on reading PID file. (#595597)Bill Nottingham2010-05-251-0/+4
|