aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-08localmount: white space cleanupWilliam Hubbs
2015-10-08localmount: clean up handling of aufs branchesIan Stakenvicius
X-Gentoo-Bug: 560008 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560008
2015-10-07mtab: fix update logicWilliam Hubbs
This advises users to remove mtab from their runlevels if /etc/mtab is a symlink, and it creates the symlink if /etc/mtab does not exist on a system. X-Gentoo-Bug: 560060 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560060
2015-10-06cgroups: Add the hugetlb, net_cls and pids controllersAustin S. Hemmelgarn
Note from WilliamH: I slightly rearranged the code and added the settings in rc.conf. X-Gentoo-Bug: 555488 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=555488
2015-10-06sysfs: use printf instead of echo to write to cgroup filesWilliam Hubbs
This is needed for compatibility with musl and printf is also posix. X-Gentoo-Bug: 562334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334
2015-10-06rc-cgroup.sh: Do not add leading spaces to cgroup valuesWilliam Hubbs
We were starting the value we write to the cgroup setting file with leading spaces and this was causing issues. This change makes sure that we aren't adding leading spaces to the value. X-Gentoo-Bug: 562354 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562354
2015-10-05bootmisc: convert errors in clean_run function to warningsWilliam Hubbs
X-Gentoo-Bug: 552418 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=552418
2015-10-05bootmisc: only remove temp directory if umount is successfulWilliam Hubbs
Change the clean_run function to only remove the temp directory if the umount was successful. X-Gentoo-Bug: 561230 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561230
2015-10-05mountinfo: fix --netdev and --nonetdev on LinuxWilliam Hubbs
On Linux, the --netdev and --nonetdev switches were not working. They were both returning false. After this change, they operate based on the presence or abscence of the _netdev option in mount options.
2015-10-04mountinfo: read /proc/self/mounts instead of /proc/mounts on LinuxWilliam Hubbs
2015-10-02start-stop-daemon.sh: complain in start if command is undefinedWilliam Hubbs
The default start-stop-daemon start function expects the command variable to be defined to point to the daemon we want to start. If the variable is undefined, this means that there will be nothing to start, and in this case we should complain because it is possible that the script writer made a typo in the variable name.
2015-10-01Revert "local/netmount: remove uses of -O [no]_netdev"William Hubbs
This reverts commit 2a439c85bd69efc14847b4397bd6783cac051405. There is another use case for -O involving iscsi, so we can't remove it.
2015-09-17openrc-run: rename some dependency variables and a function for clarityWilliam Hubbs
All of the dependency type lists had the types_ prefix in their names; this has been changed to deptypes_ to make them more self documenting. Along the same lines, the setup_types function was renamed setup_deptypes.
2015-09-01localmount/netmount: on Linux, fail if some file systems do not mountWilliam Hubbs
The following return codes are returned by mount -a: 0: all file systems mounted. 32: no file systems mounted. 64: some file systems mounted. The localmount/netmount services should fail if all file systems that should mount did not mount.
2015-08-21Make localmount and netmount always succeed on non-linuxWilliam Hubbs
2015-08-18local/netmount: remove uses of -O [no]_netdevWilliam Hubbs
This was causing an incompatibility with busybox, and we do not use it in Gentoo.
2015-08-17allow localmount and netmount to failWilliam Hubbs
2015-08-10binfmt: fix indent on returnMike Frysinger
2015-08-10savecache: clean up implementationDoug Freed
X-Gentoo-Bug: 557222 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=557222
2015-08-03tmpfiles: run restorecon on the entire pathJason Zaman
The tmpfiles "d" entry will create a full path and only the last dir in the path will have its SELinux label set correctly. This patch will restorecon the parents as well so that the selinux labels are correct. eg, "d /run/libvirt/lxc", then "lxc" would have the correct SELinux label but "libvirt" would not. Signed-off-by: Jason Zaman <jason@perfinion.com>
2015-08-02mountinfo: fix -e and -E optionsWilliam Hubbs
Add the -e and -E options to getoptstring so they are recognized.
2015-07-23Add EERROR_QUIET and EINFO_QUIET to environment whitelistWilliam Hubbs
2015-07-10Increment versionWilliam Hubbs
2015-07-10savecache: Fix unable to create cache messageDoug Freed
The cache is created in $RC_LIBEXECDIR, not $RC_SVCDIR, so fix the error message when we fail to create it to match.
2015-06-24tmpfiles: Recognize type 'v' (create btrfs subvol)Mike Gilbert
This change does NOT implement btrfs subvol creation. Instead, it treats 'v' the same as 'd', which is an acceptable fallback according to the manual. Fixes #58
2015-06-24Remove execute bit from tmpfiles.sh.inMike Gilbert
2015-06-19Update ChangeLogWilliam Hubbs
2015-06-10Add rc-sstat scriptWilliam Hubbs
The rc-sstat script is written to display status of s6 services and run rc-status to display all services status. This currently only works on Linux.
2015-06-02bootmisc: Don't call dmesg in systemd-nspawn containersMike Gilbert
This fixes #57.
2015-05-29fix link to s6 websiteMike Frysinger
2015-05-27man: Document the stopsig variableMike Gilbert
This variable can be used to set the signal to send if the service is using start-stop-daemon. This fixes #56
2015-05-22Document bash's handling of ulimit optionsWilliam Hubbs
When bash is used in posix mode for the shell, the ulimit command uses a block size of 512 bytes for the -c and -f options. X-Gentoo-Bug: 549238 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=549238
2015-05-14S6: kick the scanner and sleep 1.5 seconds to avoid a race conditionWilliam Hubbs
2015-05-14s6: Use s6-svc -Dd to stop servicesWilliam Hubbs
This allows us to get rid of the sleep call in the stop function. Also, we set a configurable timeout value for stopping daemons.
2015-05-13More s6 fixesWilliam Hubbs
- When no service link is in the scan directory, show the default stopped message. - Do not remove the service link when stopping the service.
2015-05-13Fix the s6 handlingWilliam Hubbs
This changes the default s6 service directory to /var/svc.d, also it changes the code to work with the individual services instead of forcing a rescan when a service is started or stopped.
2015-05-13Start work on 0.17William Hubbs
2015-05-11Update changelogWilliam Hubbs
2015-05-11Add support for the s6 supervision suiteWilliam Hubbs
2015-05-11man: Clarify the documentation for command_argsWilliam Hubbs
The command_args variable only works if using start-stop-daemon to start the daemon.
2015-05-11Rework supervisor integration frameworkWilliam Hubbs
The original way of doing this allowed users to change the supervisor in conf.d/*. This changes this so that the supervisor setup can be done in the service script itself.
2015-05-08The rc_supervisor variable is a service configuration variableWilliam Hubbs
This variable should not be changed globally unless you really know what you are doing.
2015-05-08Make the default start, stop and status functions overridableWilliam Hubbs
This will make it possible to add support for supervision suites such as runit and s6.
2015-05-04librc: Fix crash if the service name is the same as the including runlevelJakob Drexel
If a service has the same name as the runlevel it is in, openrc will crash on changing to such runlevel. It goes in a recursive madness and eventually gets a SEGV while in snprintf (don't know why). This fixes two errors: 1. ls_dir stats files not with full path -> stat always returns != 0 2. ls_dir adds files to list if stat failed This fixes #53. X-Gentoo-Bug: 537304 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537304
2015-05-01Start work on 0.16William Hubbs
2015-05-01update ChangeLogWilliam Hubbs
2015-05-01Build: make snapshot remove .git directory from tarballWilliam Hubbs
2015-05-01Disable service scripts for systemd-nspawnMike Gilbert
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
2015-05-01Add support for systemd-nspawn containersWilliam Hubbs
This adds support for running OpenRC in a container created by the systemd-nspawn utility. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
2015-04-30Build: fix the dist targetWilliam Hubbs
The dist target now creates an archive based on the version setting. This makes it possible to create an archive identical to the ones github generates once the release is tagged.