aboutsummaryrefslogtreecommitdiff
path: root/init.d
AgeCommit message (Collapse)Author
2017-02-26net-online: updates to make the service more usableWilliam Hubbs
- switch from attempting to ping the default gateway to a host outside the local network, defaulting to google.com. - along with this, change the name of the variable that requests a ping test to include_ping_test so the meaning is more clear.
2016-12-21loopback: drop explicit route for BSD tooDoug Freed
2016-12-17modules: get rid of printing each module on LinuxWilliam Hubbs
Now that we respect the module blacklists, don't print every module we try to load, because it might not end up loaded due to the blacklist, and modprobe doesn't consider that a failure.
2016-12-17localmount: add comment about types variableDoug Freed
2016-12-17Localmount shouldn't mount remote filesystemsAlan Somers
The /etc/init.d/localmount script has a syntax error that causes it to attempt to mount remote filesystems, causing the boot to fail. The script appends a "no" to each remote filesystem type, but it should only be append the "no" to the beginning of the list. This patch fixes localmount on FreeBSD 12.0. A review of the mount(8) manpage on Ubuntu 12.04 suggests that this patch is correct for Linux, too.
2016-12-01split tmpfiles processing into opentmpfilesWilliam Hubbs
The openntmpfiles package is designed so that it can be used on systems independently of whether openrc is used.
2016-11-03init.d/loopback.in: drop the route to the loopback interface on LinuxWilliam Hubbs
This is related to #103.
2016-11-03init.d/mount-ro: do not remount /usr read only if it is premountedWilliam Hubbs
X-Gentoo-Bug: 573760 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573760
2016-11-03init.d/net-online: remove interfaces and timeout from local declarationsWilliam Hubbs
X-Gentoo-Bug: 598621 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=598621
2016-10-25init.d/loopback: drop scope on loopbackRobin H. Johnson
Busybox does not support the 'scope' argument on 'ip address add' or 'ip route add', this is documented in BUSYBOX.md, but is no longer actually needed, as the kernel does get it right without manual specification, and the ifconfig variant already relies on the kernel to get it right. This is part of #103. X-Gentoo-Bug: 487208 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487208
2016-10-05init.d/sysfs: load efivarfs module when booting in efi mode:1William Hubbs
The presence of /sys/firmware/efi is used to indicate that the system was booted in efi mode.
2016-10-04init.d/sysfs: fix efivarfs module testWilliam Hubbs
2016-10-04init.d/sysfs: fix efivarfs handlingWilliam Hubbs
Separate loading the module, if it isn't built in or loaded, from mounting the file system. This also makes sure the warning about configuring the module in /etc/conf.d/modules or building it in is displayed only if it is loaded successfully. X-Gentoo-Bug: 595836 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=595836
2016-09-28init.d: Clean up some bad ewarn outputDoug Freed
2016-09-23init.d/swap: remove the case for linuxWilliam Hubbs
I am removing the separate case for Linux, because we are droppping the "-e" switch.
2016-09-20Add --use-blacklist to modprobe calls in modules and modules-loadWilliam Hubbs
This means that we will honor the modprobe black lists. X-Gentoo-Bug: 594012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=594012
2016-09-12savecache: stop saving the dependency treeWilliam Hubbs
This fixes #85.
2016-09-12init.d/procfs: typo fixWilliam Hubbs
2016-09-08hwclock: fix module load warningWilliam Hubbs
2016-09-08init.d/procfs: fix binfmt_misc module load warningWilliam Hubbs
This reworks the logic so that the warning about configuring the binfmt_misc module is only displayed if the module actually has to be loaded.
2016-09-05init.d/swap: do not unmount all tmpfs file systemsWilliam Hubbs
X-Gentoo-Bug: 568162 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=568162
2016-09-05remove swapfiles serviceWilliam Hubbs
The swapfiles service was basically a copy of the swap service, so this commit consolidates the functionality into the swap service. X-Funtoo-Bug-URL: https://bugs.funtoo.org/browse/FL-2523 X-Gentoo-Bug: 568162 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=568162
2016-08-30Fix typo in RC_UNAME check of modules-loadMartin Väth
The $RC_UNAME "Linux" had been misspelled as "linux". As a consequence, entries in e.g. /etc/modules-load.d failed to load any module succesfully under Linux(!)
2016-08-26modules-load: handle comments betterDoug Freed
This handles comments without a trailing space after the comment character. Reported-By: josef64
2016-08-25init.d: add modules-load to ignore patternsWilliam Hubbs
2016-08-25modules-load.d: cleanupsWilliam Hubbs
Move list of directories to a local variable and create the fn variable to use for an individual file name rather than using path.
2016-08-25Add modules-load.d supportWilliam Hubbs
2016-08-24init.d/hostname: do not use localhost as a default hostnameWilliam Hubbs
This allows the operating system default hostname to be used if no hostname is configured.
2016-08-23init.d/hostname: add support for /etc/hostnameWilliam Hubbs
2016-08-19Deprecate automatic loading of modulesWilliam Hubbs
In the hwclock, procfs and sysfs service scripts, we automatically attempt to load the kernel modules we need before we take any action. We shouldn't do this, because there are systems which do not use kernel modules and do not have the kmod package installed. With this change, we continue to load the modules ourselves, but we warn the admin that they need to be added to /etc/conf.d/modules or built into the kernel. In the future, this automatic loading will be dropped. X-Gentoo-Bug: 342313 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=342313
2016-07-31init.d: Add runsvdir to ignore patternsWilliam Hubbs
2016-07-31init.d: initial service adjustments for docker supportWilliam Hubbs
Add -docker keyword to the same scripts that have -lxc keyword.
2016-07-27Add support for runitWilliam Hubbs
X-Gentoo-Bug: 501364 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=501364
2016-07-27init.d/sysctl.in: typo fixWilliam Hubbs
2016-07-26init.d/loopback: remove unnecessary stop functionWilliam Hubbs
2016-07-19init.d: combine sysctl scriptsWilliam Hubbs
We had separate sysctl scripts for each operating system. However, there is no need to do this since we can detect the operating system at runtime with $RC_UNAME.
2016-07-18modules: add support for FreeBSDWilliam Hubbs
This is based on a patch submitted by Joe Maloney <pkgdemonteam@gmail.com>. This fixes #91.
2016-07-06hwclock: always use --noadjfile if availableWilliam Hubbs
When we use the --utc or --localtime switch, also use --noadjfile if it is available. This means hwclock will not use a drift file. X-Gentoo-Bug: 584722 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=584722
2016-05-05killprocs: remove calls to sleepWilliam Hubbs
X-Gentoo-Bug: 487084 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487084
2016-04-26localmount/netmount: clean up critical mount processingWilliam Hubbs
Fix a typo and do not fail if a path in critical_mounts is not listed as a critical mount does not get mounted.
2016-04-25localmount/netmount: allow mount points to be marked criticalWilliam Hubbs
In previous releases, we either treated no mount points as critical or all of them. Now both localmount and netmount support a critical_mounts setting. If mount points listed in this setting fail to mount, localmount and netmount will fail.
2016-04-15netmount: fix mounting on LinuxWilliam Hubbs
Before this commit, on Linux, we were always trying to mount file systems marked with _netdev, even when the previous mount command failed. Now, we do not run the second mount if the first fails. X-Gentoo-Bug: 579876 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=579876
2016-02-09sysfs: mount pstore when availableMike Frysinger
2016-01-28savecache: stop saving nettreeWilliam Hubbs
Netifrc is no longer part of OpenRC, so we shouldn't save its dep tree as part of savecache. This should have been removed when netifrc was split out. also, it might be related to the following bug. X-Gentoo-Bug: 563720 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=563720
2016-01-22fix testsWilliam Hubbs
X-Gentoo-Bug: 572602 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572602
2016-01-19localmount: Allow users to control whether errors are ignoredWilliam Hubbs
X-Gentoo-Bug: 572138 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572138
2016-01-13allow the user to decide whether fsck aborts for errorsjoe9
X-Gentoo-Bug: 564008 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=564008
2016-01-01add ignore patterns for init.d directoryWilliam Hubbs
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-12-11netmount: use want dependency to start nfsclientRick Farina (Zero_Chaos)
add in parsing of fstab to determine if nfsclient should be automatically started so that netmount can mount nfs without adding nfsclient to the default runlevel This fixes #71.