aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2015-04-27convert all references from runscript to openrc-runWilliam Hubbs
2015-04-26Start work on 0.15William Hubbs
2015-04-25Add ChangeLogWilliam Hubbs
2015-04-25mtab: move toward requiring /etc/mtab to be a symbolic linkWilliam Hubbs
This changes the mtab service in the following way: - If /etc/mtab is a symbolic link, success is returned. - If /etc is not writable, we warn that we could not update /etc/mtab and return success. - If /etc/mtab does not exist, we create a symbolic link from /etc/mtab to /proc/self/mounts. - Otherwise, we warn that updating /etc/mtab as a file is deprecated and continue to update it after outputting instructions to the user for how to move it to a symbolic link.
2015-04-24typo fix in NEWSWilliam Hubbs
The binfmt service should be added to the boot runlevel, not sysinit.
2015-04-24Update newsWilliam Hubbs
2015-04-24start-stop-daemon: redirect stdin if --background option is usedWilliam Hubbs
X-Gentoo-Bug: 498684 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=498684
2015-04-22Convert feature removal schedule to markdownWilliam Hubbs
2015-04-22Convert news to markdownWilliam Hubbs
2015-04-22convert README.history to markdownWilliam Hubbs
2015-04-22Update busybox documentationWilliam Hubbs
Convert README.busybox to markdown and add the note on the sysctl applet incompatibility.
2015-04-22Convert style guide to markdownWilliam Hubbs
2015-04-22README.md: small formatting changesWilliam Hubbs
2015-04-22Update README.md format and bug reporting informationWilliam Hubbs
2015-04-22Rename README README.mdWilliam Hubbs
This fixes #26.
2015-04-21savecache: clean up creation of cache directoryWilliam Hubbs
The cache directory should be created via mkdir -p instead of mkdir. This makes sure all parent directories are created. Also, we now display an error message explaining that we were unable to create the cache directory if creation fails.
2015-04-21savecache: fix check for $RC_LIBEXECDIR writabilityWilliam Hubbs
We were originally checking to see if $RC_LIBEXECDIR/cache was writable. For a new install, this check will fail since this path does not exist. This is also incorrect because later we create $RC_LIBEXECDIR/cache. The correct check is checkpath -W $RC_LIBEXECDIR, and this fixes the issue. X-Gentoo-Bug: 544632 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=544632
2015-04-21cgroups: use printf to write to cgroup filesWilliam Hubbs
This fixes #33.
2015-04-20Add binfmt service to sysinit runlevelWilliam Hubbs
This makes binfmt processing behave like tmpfiles processing which follows the same specification as systemd. This fixes #48. X-Gentoo-Bug: 545162 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545162
2015-04-20procfs: do not force loading of usbcore moduleWilliam Hubbs
It appears that the only reason we were force loading the usbcore module was to facilitate mounting usbfs. Since we no longer mount usbfs, this is no longer necessary. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-20procfs: remove usbfs and usbdevfs supportWilliam Hubbs
The usbfs and usbdevfs file systems have been deprecated since Linux-2.6.32, so we remove the code to automount them. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312
2015-04-19procfs: do not test for the existence of /proc/filesystemsWilliam Hubbs
The test for the existence of /proc/filesystems is redundant since we always return success.
2015-04-17procfs: remove redundant check for OpenVZWilliam Hubbs
The check for OpenVZ is not necessary since the procfs service already will not run on OpenVZ due to the keywords setting.
2015-04-14Move SELinux mount to sysfs serviceWilliam Hubbs
The selinux file system is mounted under /sys, so move the code for it to the appropriate service. X-Gentoo-Bug: 546290 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546290
2015-04-08Fix tmpfiles processingWilliam Hubbs
Tmpfiles.d processing had /run overriding /usr/lib and /etc, but this is not correct. The correct order, from lowest to highest, for tmpfiles processing is: * /usr/lib/tmpfiles.d/*.conf * /run/tmpfiles.d/*.conf * /etc/tmpfiles.d This means /run/tmpfiles.d/*.conf can override /etc/tmpfiles.d/*.conf, but /etc/tmpfiles.d/*.conf can override both of them. This fixes #49.
2015-04-08Fix script execution in the local serviceWilliam Hubbs
The local service should use eval when it executes scripts since it has the redirection set up in a variable. This fixes #50. X-Gentoo-Bug: 545012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545012
2015-04-07Make sysctl on Linux respect rc_verbose settingWilliam Hubbs
We do not need to spam the console with variable settings by default. This fixes #51. X-Gentoo-Bug: 541922 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541922
2015-03-29Fix rc_verbose processingWilliam Hubbs
We were processing the rc_verbose setting before we sourced the configuration file where it was set; this fixes the issue. Fixes #46
2015-03-25checkpath: Remove the last HAVE_SELINUX testWilliam Hubbs
2015-03-25selinux: unconditionally include the header and provide stub methodsWilliam Hubbs
If selinux is disabled, then stub methods will be provided instead of calling the real methods. This removes some warnings about unused parameters which used to be covered up with #ifdef HAVE_SELINUX. Signed-off-by: Jason Zaman <jason@perfinion.com>
2015-03-24checkpath: fix warning about selinux_on being unusedWilliam Hubbs
2015-03-24Fix some compiler warningsDoug Freed
librc: Fix C90 warning (mixed declaration and code) rc: Fix warning about discarding const qualifier Fixes #45.
2015-03-24start-stop-daemon: Fix regression for --testWill Miles
The previous fix to --test (PR #34) prevented reading one too many arguments when --exec -or --name was not specified, but created a regression where the last argument would not print if either of those arguments was specified. This corrects the issue. Fixes #41.
2015-03-24Silence warning about _DEFAULT_SOURCE for Linux/glibcWilliam Hubbs
In >=glibc-2.20, the _BSD_SOURCE macro is deprecated in favor of _DEFAULT_SOURCE. This adds -D_DEFAULT_SOURCE to CPPFLAGS on Linux. Fixes #44
2015-03-23Fix savecore service on FreeBSDAnthony Donnelly
savecore -C only needs the dumpdevice otherwise it causes an error on startup. This fixes #40.
2015-03-21mk/os-GNU.mk: fix typoWilliam Hubbs
MAX_PATH should have been PATH_MAX
2015-03-20savecache: Make sure cache directory exists before running checkpathWill Miles
checkpath -W can fail if the specified path doesn't actually exist yet. In this case savecache script should attempt to create the path if it is missing, however it is pre-empted by the checkpath call. This patch adds an explicit existence test before executing checkpath. This fixes #36.
2015-02-27bootmisc: clean_run safety improvements.Robin H. Johnson
If /tmp or / are read-only, the clean_run function can fail in some very bad ways. 1. dir=$(mktemp -d) returns an EMPTY string on error. 2. "mount -o bind / $dir", and don't check the result of that, 3. "rm -rf $dir/run/*", which removes the REAL /run contents 4. box gets very weird from this point forward Signed-Off-By: Robin H. Johnson <robbat2@gentoo.org> Signed-Off-By: Chip Parker <infowolfe@gmail.com> Reported-by: Chip Parker <infowolfe@gmail.com> Tested-by: Chip Parker <infowolfe@gmail.com>
2015-02-19checkpath: do not chown or chmod symbolic linksWilliam Hubbs
This is another security fix. If you use chown() or chmod() on a symbolic link, it affects the referenced file, not the symbolic link itself. X-Gentoo-Bug: 540006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=540006
2015-02-18ChangeLog: show authors and committersWilliam Hubbs
2015-02-18local: fix redirectionsWilliam Hubbs
The local service now redirects stdout and stderr for the scripts it runs to /dev/null unless it is run in verbose mode. X-Gentoo-Bug: 537444 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=537444
2015-02-15typo fixWilliam Hubbs