aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2016-01-12Remove multicall binary structure from OpenRCWilliam Hubbs
This eliminates the need for the selinux-specific wrapper scrript we were installing in /lib*/rc/{bin,sbin}.
2016-01-05rc: fix compiler warnings cleanupWilliam Hubbs
This reverts commit 981d2b3308edb0d0a68f7bdce4f2c99110de6940 and fixes the warnings that generated.
2016-01-04Clean default env_whitelistWilliam Hubbs
The whitelist of environment variables we pass to service scripts included several unnecessary variables. The default whitelist now includes EERROR_QUIET, EINFO_QUIET, IN_BACKGROUND and IN_HOTPLUG. X-Gentoo-Bug: 569542 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=569542
2016-01-01rc: clean up compiler warningsWilliam Hubbs
The get_systype(), detect_container(), detect_prefix() and detect_vm() functions need to return "char *" instead of "const char *".
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-14format fixWilliam Hubbs
2015-12-08rc.map: remove references to rc_sys_v{1,2}William Hubbs
2015-12-08Convert rc_sys() calls to detect_container() and detect_vm()William Hubbs
2015-12-08Create detect_container() and detect_vm() functionsWilliam Hubbs
These functions replace rc_sys so that we can detect containers and vms separately. Also, we copy file_regex() to rc-misc.c and open it to all operating systems.
2015-12-05Rename bootlevel variable in _usage.cWilliam Hubbs
In src/rc/_usage.c, we were using bootlevel as the variable to hold the return value of rc_sys. This changes the variable name to systype because this function returns a system type, not a runlevel.
2015-12-02Use systype variable for rc_sys callWilliam Hubbs
2015-12-02Add detection for rkt containersWilliam Hubbs
2015-12-02Add detection for docker containersWilliam Hubbs
2015-12-01librc: comsolidate rc_sys_v1 and rc_sys_v2 into rc_sysWilliam Hubbs
These functions were never meant to be used outside of OpenRC, and they were added when we thought we were going to do away with the automatic detection of subsystems. Since the autodetection is not going away, we can combine these functions into rc_sys.
2015-11-12Implement "want" dependencyIan Stakenvicius
The want dependency is similar to the use dependency. If a service script, for example called service1, adds "want service2" to its depend function, OpenRC will attempt to start service2, if it exists on the system, when service1 is started. However, service1 will start regardless of the status of service2. X-Gentoo-Bug: 406021 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406021
2015-11-11Standardize macro tests for gnu hurdBenda Xu
This also fixes breakage of GNU/hurd builds introduced by commit 3f82edbeb92.
2015-11-05librc: rework overriding rc.conf options from the kclWilliam Hubbs
Rename the rc_conf_override function to describe its purpose better, drop one conditional compile by making it available everywhere, and move the call to it after the optional rc.conf.d directory is processed.
2015-11-05librc: Remove redundant code from rc_config_loadWilliam Hubbs
2015-11-05Add rc.conf.d supportWilliam Hubbs
This makes it possible to override settings in rc.conf by adding a directory @SYSCONFDIR@/rc.conf.d and putting files in this directory. The files will be processed in lexical order, and the last setting in these files will be used.
2015-10-13mountinfo: make sure the netdev variable is initialized on LinuxWilliam Hubbs
This fixes the following regression: X-Gentoo-Bug: 562668 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668
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-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.