aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
2020-11-27bootmisc: allow sysvinit compatibility during shutdownWilliam Hubbs
Use "halt -w" to write the halt record if it exists. Otherwise use openrc-shutdown. This fixes #336.
2019-07-29init.d/agetty: provide the getty virtual serviceWilliam Hubbs
2018-12-06init.d/agetty: set default respawn period to 60 secondsWilliam Hubbs
Without a respawn period setting, the supervisor will give up on respawning agetty after it is respawned respawn_max times. For most daemons giving up like this is reasonable, but not for agettys. Agettys should always be respawned unless they are respawning too fafst,. If an agetty is respawning faster than 10 times in 60 seconds, this seems to be too fast.
2018-11-07Create save-keymaps and save-ktermencoding servicesWilliam Hubbs
These services represent the parts of the keymaps and termencoding services which saved the settings back to the root file system so they can be loaded very early in the boot process. These are needed to allow keymaps and termencoding to run earlier in the boot sequence. X-Gentoo-Bug: 446018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=446018
2018-10-23modules: Add --first-time switch to modprobe commandsWilliam Hubbs
On Linux, kernel modules should be loaded once during boot, either in an initramfs or by this service. This does not change anything other than printing out messages if a module is loaded more than once. X-Gentoo-Bug: 659530 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=659530
2018-10-13misc: whitespace fixesAustin English
2018-08-14Stop mounting efivarfs read-onlyWilliam Hubbs
We do not need to do this any longer since all supported linux kernels make efivarfs immutable and the tools that manipulate it are aware of this feature. This fixes https://github.com/openrc/openrc/issues/238.
2018-06-29modules: remove the ability to rename modules on the flyWilliam Hubbs
Kmod doesn't support the -o switch, so if you have been using this your module loads have been failing.
2018-05-11Revert "savecache: stop saving the dependency tree"William Hubbs
It is safe to save the deptree, but we also need to regenerate it at boot time.
2018-05-07Remove localmount from dependencies for linux-only servicesWilliam Hubbs
This removes localmount from the dependencies of the consolefont, keymaps, numlock and procfs services. These services are Linux only and the default modern linux system has / and /usr on the same file system. This also fixes the following issue. X-Gentoo-Bug: 651998 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651998
2018-03-16init.d/modules: add code from modules-load serviceWilliam Hubbs
There is no reason for these to be separate services. I did add a provide so that we don't break backward compatibility.
2018-03-16net-online: always start after netWilliam Hubbs
X-Gentoo-Bug: 650600 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650600
2018-03-14agetty.in: allow status to be displayedWilliam Hubbs
2018-03-05init.d: swap should always be started after rootScall
Otherwise if a swap file is being used, and swap is started before root, swapon may fail because of a read-only filesystem.
2018-02-27cgroups: fix indentationWilliam Hubbs
2018-02-26cgroups: add rc_cgroup_memory_use_hierarchy setting for cgroups v1William Hubbs
2018-02-23improve cgroup configuration checksWilliam Hubbs
make the base/controller functions return successfully if cgroups v1/v2 are not configured in the kernel
2018-01-05net-online: only process symbolic links in /sys/class/net3PO
The /sys/class/net directory contains files which are not symlinks if the system has bonded devices [1]. We should ignore these files. This fixes #196. [1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/
2017-12-14procfs: remove the @sysconfdir@ referenceWilliam Hubbs
2017-12-14hostname: replace @SYSCONFDIR@ references with /etcWilliam Hubbs
I do not know of any situation where /etc/hostname is at any other location. Also, this does not run on prefix.
2017-12-14hwclock: use shell variables for configuration file pathWilliam Hubbs
This removes a reference to @SYSCONFDIR@.
2017-12-14sysctl: hard code paths for sysctl files on *bsdWilliam Hubbs
For *BSD,the sysctl*.conf files are always in /etc.
2017-12-14local: misc cleanupsWilliam Hubbs
Remove references to @SYSCONFDIR@ since these can be calculated at runtime. Also style fixes.
2017-12-14devfs: cleanupWilliam Hubbs
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since they can be calculated at runtime.
2017-12-12net-online: wait for ping_test_hostbell07
The script should wait till the ping host is available or timeout reached Closes : #179 Closes : #191
2017-12-12network: use 'command -v ip' to test for the ip executableWilliam Hubbs
This is an improved test because it doesn't require the ip executable to be in a specific path.
2017-12-12Do not use file tests in net-onlineWilliam Hubbs
https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net This is for #189
2017-12-11net-online: clean up quoting and test for existenceWilliam Hubbs
This is for #178.
2017-12-11Gracefully handle unreadable /sys/class/net/dev/ nodesMarcel Greter
Fixes https://bugs.gentoo.org/629228 Fixes #189 Fixes #185 Fixes #178
2017-11-28split cgroups mounting out of sysfsWilliam Hubbs
This is neceessary to allow cgroups to be mounted in an lxc/lxd container. Fixes https://github.com/openrc/openrc/issues/187
2017-11-14strongly encourage Linux users to not make /etc/mtab a flat fileWilliam Hubbs
The OpenRC team does not currently know of any modern linux tools that require /etc/mtab to be a flat file, so this puts users on notice that the mtab service will be removed in the future.
2017-11-14adjust mtab and localmount dependenciesWilliam Hubbs
localmount had mtab in its "use" dependencies; however, it makes more sense to add "before localmount" to the mtab service and remove "use mtab" from the localmount service.
2017-10-10typo fixWilliam Hubbs
2017-10-09init.d/sysfs.in: fix reference to RC_LIBEXECDIRWilliam Hubbs
The sysfs init script referred to @LIBEXECDIR@ before this change, but it is better to refer to RC_LIBEXECDIR so that we get rid of a sed substitution.
2017-10-06add option to make agetty startup quietChris Cromer
This fixes #150
2017-09-16sysfs: fix cgroup hybrid modeWilliam Hubbs
In hybrid mode, we should not try to mount cgroup2 if it is not available in the kernel. This fixes #164.
2017-09-14add support for control groups version 2William Hubbs
This is for #94.
2017-06-13init.d/sysfs: mount efivars read onlyWilliam Hubbs
This fixes #134.
2017-06-12init.d/hostname: fix default parameter syntaxNuno Silva
The syntax for expanding a variable with a default value is ${parameter:-word} not ${parameter-word} although the latter still works for a reason I could not explain. This fixes #143.
2017-06-12init.d/hostname: fix indentationNuno Silva
This is for #143.
2017-06-05init.d/bootmisc: use openrc-shutdown instead of halt to write halt recordWilliam Hubbs
This fixes #139 and fixes #128. and fixes #124.
2017-05-30Change killprocs to use kill_all instead of killall5William Hubbs
X-Gentoo-Bug:376977 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=376977
2017-05-22typo fixWilliam Hubbs
X-Gentoo-Bug: 618888 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=618888
2017-04-10bootmisc: do not remove ld-elf32.so.hintsi.Dark_Templar
File /var/run/ld-elf32.so.hints is used on FreeBSD 64bit multilib This fixes #125.
2017-04-05Fix make install on FreeBSD: don't try to install /etc/init.d/modules twicei.Dark_Templar
2017-03-31init.d/agetty.in: add -prefix keywordWilliam Hubbs
2017-03-31init.d/mount-ro: change dependency on killprocs and savecache to afterWilliam Hubbs
killprocs always succeeds and savecache is not required by mount-ro, so we can just start after both of these have run.
2017-03-28init.d: add agetty to ignore patternsWilliam Hubbs
2017-03-16update dependencies for clock serviceWilliam Hubbs
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
2017-03-14Remove all occurances of 'before *' from dependenciesWilliam Hubbs
Using wildcards in dependencies causes issues when rc_parallel is set to yes because it can lead to deadlocks. All dependencies need to be explicit rather than implicit. This is the first stage of moving this direction.