aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-09add agetty serviceWilliam Hubbs
The agetty service is an alternate way to manage gettys with agetty under Linux which is separate from an external init system.
2017-03-08init.d/sysfs: drop modules completely from the dependenciesWilliam Hubbs
This is for #112.
2017-03-07init.d/sysfs: Do not load efivarfs moduleWilliam Hubbs
My understanding is that the kernel can autoload this module. If it doesn't, the module should be built in or loaded from an initramfs. This fixes https://github.com/openrc/openrc/pulls/112.
2017-02-28make sure netmount and localmount start after rootWilliam Hubbs
2017-02-26net-online: typo fixWilliam Hubbs
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.
2017-02-23sh/rc-functions.sh.in: add get_bootparam_value functionWilliam Hubbs
2017-02-22move init.d examples under support and install themWilliam Hubbs
2017-02-22scripts: make sure the rc-sstat symlink is always replacedWilliam Hubbs
2017-02-18install support filesWilliam Hubbs
These files have been in the distribution for some time but haven't been installed. They are good examples of how to do things, so we should install them.
2017-02-17support: rename all README files to README.mdWilliam Hubbs
2017-02-17Move deptree2dot to the support folderWilliam Hubbs
Since deptree2dot and the perl requirement are completely optional, we can move this tool to the support folder. This gives the user the option of using it if they have perl installed, and means we do not have an optional runtime dependency on perl. Documentation for this tool has also been added to the support folder. X-Gentoo-Bug: 600742 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=600742
2017-01-31test/setup_env: ensure that eval_ecolors is available on the path.William Pitcock
The test environment previously used the system default paths instead of installing the necessary $PATH environment variable to make finding eval_ecolors work. This closes #117. X-Gentoo-Bug: 374191. X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=374191.
2017-01-26Fix typo in guide.mdNicolas Porcel
This fixes #115.
2017-01-26Revert "scripts: do not substitute for @SHELL@ in rc-sstat"William Hubbs
This reverts commit e2e652e469efa5f3ebcd69828ff16d8f5ad3f1b8.
2017-01-25start-stop-daemon: allow all standard signalsDoug Freed
Also we define the signalpair_item macro. This fixes #113. X-Gentoo-Bug: 604986 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604986
2017-01-08scripts: do not substitute for @SHELL@ in rc-sstatWilliam Hubbs
2017-01-04mountinfo: make the path to /proc/mounts a constantWilliam Hubbs
This path should not be hard coded in the open call. Linux prior to 2.4.19 did not have /proc/self/mounts, so for now I'm making this value /proc/mounts everywhere, but that may change to /proc/self/mounts on linux; I'm not sure we should care about <2.4.19. X-Gentoo-Bug: 604646 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604646
2017-01-04Clean up warnings that can use the _unused macroBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2017-01-04Indentation fixesBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2017-01-04Drop the use of the _BSD_SOURCE macro on LinuxBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2017-01-04Drop the use of the _BSD_SOURCE macro on GNU/HurdBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2016-12-21loopback: drop explicit route for BSD tooDoug Freed
2016-12-21version 0.24William Hubbs
2016-12-20update ChangeLogWilliam Hubbs
2016-12-19librc: detect loops in stacked runlevels and abortDoug Freed
This fixes #109. X-Gentoo-Bug: 558700 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=558700
2016-12-18sh/init.sh.Linux.in: remove unused check for Gnu/KFreeBSDWilliam Hubbs
This script only runs on Linux, so the check will always be false.
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-17sh/init.sh.Linux.in: skip /proc test if no md5sumDoug Freed
This will also warn users if md5sum is missing, which serves as a pretty good indicator that /usr is not mounted.
2016-12-17sh/openrc-run.sh: expose default start/stop/statusRobin H. Johnson
Supervisor setups break easily when start/stop/status functions are not default. Applications that write multiple PIDs to a pidfile (eg HAProxy as described in bug 601540), can also benefit from being able to call the default start/stop/status with modified environment variables. Expose the default start/stop/status functions as default_start/stop/status, and use them for the defaults start/stop/status. Trivial usage example: ``` stop() { t=$(mktemp) for pid in $(cat $pidfile) ; do echo $pid >$t pidfile=$t default_stop done rm -f $t } ``` X-Gentoo-Bug: 601540 X-Gentoo-Bug-URL: https://bugs.gentoo.org/601540 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-12-17Fix typosDoug Freed
Fixes #99
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-15rc.conf: fix the commented default setting for rc_loggerWilliam Hubbs
X-Gentoo-Bug: 601480 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=601480
2016-12-12runlevels: remove bad trailing backslashDoug Freed
2016-12-05man/start-stop-daemon.8: clarify documentation about --pidfile optionWilliam Hubbs
The documentation implied that if you stop a daemon we handle multiple pids in a pid file. This is not correct. We only handle the first pid. X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=601540
2016-12-02fix manual typoAndCycle
This fixes #105.
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-17selinux: fix SIGSEGV with invalid contextsJason Zaman
Fixes: https://github.com/openrc/openrc/issues/104
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-03conf.d/net-online: clarify comment about interfaces settingWilliam Hubbs
This setting refers to all interfaces that support ethernet
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-11-01src/rc/rc: do not try to start services if fork failsWilliam Hubbs
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-24src/rc/rc-misc.c: report error if call to flock() failsWilliam Hubbs
X-Gentoo-Bug: 597390 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=597390
2016-10-16init.d.misc/wpa_supplicant: find wireless interface for FreeBSDJoe Maloney
This fixes #101.
2016-10-11do_service: Initialize idx to 0Sven Wegener
If index is not explicitly specified for service_started_daemon, it will look for daemons by random index. This fixes #100.
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