aboutsummaryrefslogtreecommitdiffstats
path: root/etc/rc.d/init.d
Commit message (Collapse)AuthorAgeFilesLines
* rc.d/functions: do not use "+=" to concatenate stringhanzongcheng2021-11-021-1/+1
| | | | | | Some shell(like busybox's) do not support "+=" for string concatenation. Signed-off-by: hanzongcheng <hanzongcheng@huawei.com>
* spec: Move service script into subpackageJan Macku2021-05-311-0/+1
| | | | | | | | | | This changes moves service script into initscripts-service subpackage. The subpackage could be install without main package. This change allows audit not to require initscripts and require only initscripts-service instead. Requested by: msekleta@redhat.com
* init.d/functions: Make usage msgs more clearJan Macku2020-11-061-6/+6
|
* rc.d/functions: replace grep's --quiet with -qChaitanya Vadrevu2020-08-181-1/+1
| | | | | | Some versions of grep (like busybox's) do not support --quiet. So use -q instead like in the rest of the file. Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@ni.com>
* Replace grep -EL with subshell since -L changed behaviourJan Macku2020-03-241-2/+2
| | | | | Sugested by @lnykryn Related to issue #300
* Remove deprecated option -m of pidofJan Macku2020-03-241-2/+2
| | | | | Resolves: #1798128 Co-authored-by: Lukáš Nykrýn <lnykryn@redhat.com>
* Repalace hardcoded tests for yes and no with testing functionsJan Macku2019-09-121-6/+4
| | | Resolve issue: #42
* rc.d/functions: fix escape sequence being output under systemd service unitsHATAYAMA Daisuke2019-08-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When functions provided by /etc/rc.d/functions is used, escape sequence is output under systemd service units and logged into /var/log/messages as follows: # LANG=C systemctl cat foobar.service # /etc/systemd/system/foobar.service [Unit] Description=FOOBAR [Service] Type=oneshot ExecStart=/usr/bin/foobar.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target # cat /usr/bin/foobar.sh #! /bin/bash . /etc/init.d/functions echo_success # LANG=C grep foobar.sh /var/log/messages Aug 7 09:29:54 localhost foobar.sh[29607]: #033[60G[#033[1;32m OK #033[0;39m]#015#033[60G[#033[1;31mFAILED#033[0;39m] This is a regression issue caused by the commit f88dbd98e992 where consoletype command was dropped. Under systemd service units, standard input is associated with /dev/null by default: # systemctl show -p StandardInput foobar.service StandardInput=null man 5 systemd.exec: StandardInput= Controls where file descriptor 0 (STDIN) of the executed processes is connected to. Takes one of null, tty, tty-force, tty-fail, data, file:path, socket or fd:name. If null is selected, standard input will be connected to /dev/null, i.e. all read attempts by the process will result in immediate EOF. consoletype command interprets /dev/null as serial: # consoletype < /dev/null warning: consoletype is now deprecated, and will be removed in the near future! warning: use tty (1) instead! More info: 'man 1 tty' serial The commit f88dbd98e992 overlooks this situation. To fix this issue, check also "not a tty" to cover the case where standard input is /dev/null. Note that LANG=C is needed because the message "not a tty" varies depending on locales.
* network: don't fail with IFDOWN_ON_SHUTDOWNLukas Nykryn2019-06-101-2/+2
|
* rc.d/functions: remove support cgroupsLukas Nykryn2019-06-061-15/+2
| | | | | Now with systemd, this does not work pretty well and users really should use systemd unit-files for this.
* Add option to wait until target is reachableJan Macku2019-04-041-1/+16
| | | | | | | | | | | | | | | | | | Add option for time saving waiting Replace date with simple timeout Rename configurable variable and add documentation Print log only when didn't reach IP address in time Add support for IPv6 address Remove unneeded output Change -ge to -gt, because equal value is ok Clarify DNS name option in documentation
* network/ifup/ifdown: deprecations warnings redirected to stderrDavid Kaspar [Dee'Kej]2018-08-061-3/+3
|
* network/ifup/ifdown: deprecation warnings for 'network-scripts' addedDavid Kaspar [Dee'Kej]2018-08-021-0/+7
| | | | | In case of 'network' service these warnings are displayed only once, to not spam unnecessarily user's journalctl if they have many NICs.
* network: parsing of /proc/mounts returnedDavid Kaspar [Dee'Kej]2018-07-241-1/+6
| | | | | | | This partially reverts the commit 15eaf7ece, because systemd's generated unit files might have incorrect dependencies at some circumstances, thus causing diskless nfs-clients to hang while unmounting root filesystem after '$ service network stop'.
* specfile: netconsole service moved to /usr/libexecDavid Kaspar [Dee'Kej]2018-06-141-164/+0
|
* lang.{sh,csh} moved into setup packageDavid Kaspar [Dee'Kej]2018-05-301-16/+3
| | | | | Other references to these files were removed, as well as irrelevant info in sysconfig.txt, and some dead code in init.d/functions file.
* Repository scheme updated to new layoutDavid Kaspar [Dee'Kej]2018-05-303-0/+1144
NOTE: This commit just moves files around, without actually fixing the Makefiles and specfile. See follow up commits which resolve this.