aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
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-11-17selinux: fix SIGSEGV with invalid contextsJason Zaman
Fixes: https://github.com/openrc/openrc/issues/104
2016-11-01src/rc/rc: do not try to start services if fork failsWilliam Hubbs
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-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-09-30openrc-run: fix double freeDoug Freed
2016-09-19Revert "Disable parallel startup in interactive mode"William Hubbs
This reverts commit 8b4fc05ff2645b2ecb0f153492f72dd8b39ba431. The original commit did not explain why this feature was disabled, and I now have a request to enable it. This fixes #24.
2016-09-16rc-misc: allow EINFO_VERBOSE through tooDoug Freed
2016-09-14rc-misc: Allow EINFO_COLOR through env_filter()Doug Freed
This allows rc-service -C <service> <action> to properly not print color messages. Fixes #93
2016-08-25openrc-run: make runscript warning respect quiet optionWilliam Hubbs
X-Gentoo-Bug: 591414 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=591414
2016-07-31librc: fix Docker auto detectionWilliam Hubbs
The original auto detection of Docker containers assumed the presence of a container environment variable. However, Docker-1.12 does not implement this, and I'm not sure which versions of docker implemented it. The new test is for the presence of a file named .dockerenv in the root directory.
2016-07-26start-stop-daemon: Add SSD_IONICELEVELKenneth Lakin
This is the disk IO counterpart to SSD_NICELEVEL. Modified by William Hubbs to add the variable to the start-stop-daemon man page. This fixes #69.
2016-07-24rc-logger: refuse to cat TMPLOG into itselfDoug Freed
This prevents an infinite loop in case somebody decides to set rc_log_path to match TMPLOG.
2016-07-18rc-status: add -m/--manual option to show manually started servicesWilliam Hubbs
X-Gentoo-Bug: 585906 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=585906
2016-07-16rc: Rename some static variables to kill warningsDoug Freed
2016-07-14Remove the DEBUG_MEMORY macroWilliam Hubbs
This fixes #43.
2016-07-14make variable aflag a boolean show_allWilliam Hubbs
2016-07-13libeinfo: document the x suffix on function namesJaromil
This fixes #88.
2016-06-10fstabinfo/mountinfo: ensure /etc/fstab exists before calling setmntentWilliam Hubbs
This is based on a patch by A. Wilcox <awilfox.gentoo@foxkit.us>. X-Gentoo-Bug: 478226 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478226 X-Gentoo-Bug: 478226 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478226
2016-05-24Make deprecation warnings for rc and runscript more visibleWilliam Hubbs
These warnings were inserted in verbose only mode in OpenRC-0.13.A Now, we are making them more visible in preparation for removing these compatibility binaries in the future.
2016-05-23supervise-daemon: log the exit code or signal when a child process diesWilliam Hubbs
2016-05-13rc-selinux: access check was backwardsJason Zaman
2016-05-13supervise-daemon: add pam service fileWilliam Hubbs
2016-05-04openrc-run: clean up runscript deprecation messageWilliam Hubbs
2016-04-27add daemon supervisorWilliam Hubbs
The supervise-daemon process is meant to be a lightweight supervisor which can monitor and restart a daemon if it crashes.
2016-04-11start-stop-daemon: Allow group read/write when creating output filesMike Gilbert
This allows for better interaction with inherited ACL entries. This fixes #84. X-Gentoo-Bug: 577362 X-Gentoo-Bug-URL: https://bugs.gentoo.org/577362
2016-02-12Fix rc_env_allow wildcard usageWilliam Hubbs
Before this commit, using * in rc_env_allow did not work. This fixes #60.
2016-01-28rc-service: add --ifinactive and --ifnotstarted flagsWilliam Hubbs
X-Gentoo-Bug: 523174 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523174
2016-01-22add back deprecation warnings lost during refactoringWilliam Hubbs
2016-01-22fix testsWilliam Hubbs
X-Gentoo-Bug: 572602 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572602
2016-01-21librc: Complain when a real and virtual service have the same nameWilliam Hubbs
2016-01-20openrc-run: in verbose mode, log execution of the shell scriptWilliam Hubbs
This is to show when openrc-run runs the openrc-run.sh script; it is used for debugging.
2016-01-19rc: remove use of magic constant and allow OpenVZ to drop to shellDoug Freed
OpenVZ has had console support for a long time now; allow them to use it to drop to a shell during interactive boot.
2016-01-19librc: handle rc_sys="prefix" even if we weren't built with a prefixDoug Freed
This probably isn't needed, but it mimics old behavior.
2016-01-19librc: fix handling the nothing special case for rc_sysDoug Freed
2016-01-19librc: move system detection code into rc_sys and use itDoug Freed
This fixes an issue where librc code was calling code that only existed in the rc binary. This reverts commits 8addd79 and 9f6e056 This fixes #75.
2016-01-18Revert "rc: make get_systype similar to the old rc_sys function"William Hubbs
This reverts commit f79a7a7be18d68bf264efc60d82838d03048da6b.
2016-01-18Revert "librc: fix librc-depend functions to call rc_sys"William Hubbs
This reverts commit 73482cf13a338051606788957cbd0031ac850c70.
2016-01-18fix bsd buildWilliam Hubbs
X-Gentoo-Bug: 572068 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572068
2016-01-18rc: make get_systype similar to the old rc_sys functionWilliam Hubbs
2016-01-18librc: fix librc-depend functions to call rc_sysWilliam Hubbs
2016-01-14src/rc/Makefile: fix make depend targetWilliam Hubbs
2016-01-14include rc.h properly in source filesWilliam Hubbs
We were attempting to include rc.h in rc-misc.h instead of the source files where it should be included.
2016-01-14fix selinux buildWilliam Hubbs
X-Gentoo-Bug: 571798 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=571798
2016-01-13fix selinux buildWilliam Hubbs
2016-01-13Add LANG, LC_MESSAGES and TERM to the environment whitelistWilliam Hubbs
2016-01-13fix seg faultWilliam Hubbs