aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-24add option to disable setting the system clock on boot for linux systemsWilliam Hubbs
This commit adds the clock_hctosys option which is used to skip setting the system clock on boot and can be used with a modern linux kernel which has the CONFIG_RTC_HCTOSYS option set to y. I would like to thank Dimitris Mandalidis for the report and for the patch to baselayout-1 on which my changes to openrc are based. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-01-20change local to run programsWilliam Hubbs
This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
2011-01-18test: You need to run "make" before "make check" will work.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-18docs: make check does not catch textfile trailing whitespace.Robin H. Johnson
2011-01-18Document all deprecated code for future removal.Robin H. Johnson
2011-01-18sh/init: Detect a mounted /proc without sleepingRobin H. Johnson
Previously we checked if /proc was alive by reading /proc/uptime twice with a 1 second sleep between calls, so that it had time to update. This got a complaint of an entire 1 second delay, so we improve the check to be much faster without sleep. We cannot continue to use /proc/uptime as it only has a 10ms resolution. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=348416 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-17librc: delete trailing newlinesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17tests: check for trailing blank newlinesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Add removal schedule document for code trimming/deprecation.Robin H. Johnson
2011-01-17Document that rc_sys_v{1,2} should not be used outside of OpenRC.Robin H. Johnson
2011-01-17Bug #351570: Fix hidden functions visibility for rc_deptree_load_file.Robin H. Johnson
2011-01-17Build cleanup: librc.funcs.hidden.list is generated by testsuite.Robin H. Johnson
2011-01-17Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson
Refactor rc_conf_value into librc for use in library context. Also requires moving: - rc_conf internal static - Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX moved to rc.h with new RC_ prefix added. - Defines: RC_CONF, RC_CONF_OLD moved to rc.h. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-17tests: check for common style issuesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger
POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17start a STYLE fileMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17tests: setup env before reading local filesMike Frysinger
The local files we source might use local binaries (like eval_ecolors), so setup the env first. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17dist.mk: add a standard "distcheck" targetMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Style fix: "char *foo" not "char* foo".Robin H. Johnson
2011-01-17Style fix: /* */ comments not // comments.Robin H. Johnson
2011-01-17Style fix: "while (" not "while(".Robin H. Johnson
2011-01-17Style fix: "if (" not "if(".Robin H. Johnson
2011-01-17Better error checking of argc for --applet call.Robin H. Johnson
2011-01-17Use xstrdup for style.Robin H. Johnson
2011-01-17Clean up all trailing whitespace in src/.Robin H. Johnson
2011-01-17Bug #351712: Implement --applet selection mode for SELinux wrappers.Robin H. Johnson
In addition to detecting what multicall applet we want via argv[0], provide an explicit override mode with a --applet initial argument. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-17Add TODO item.Robin H. Johnson
2011-01-17Add new option -F to rc-depend tool, so that we can debug user deptree files ↵Robin H. Johnson
easily.
2011-01-17Factor out new function rc_deptree_load_file to aid in debugging deptree ↵Robin H. Johnson
files from users. Loads from a given filename instead of the hardcoded RC_DEPTREE_CACHE define.
2011-01-16Bug #351783: more documentation for rc_sys. But really see the OpenRC ↵Robin H. Johnson
migration guide where this is covered.
2011-01-14bug #351622: Use CFLAGS during linking.Nathan Phillip Brink
Fix compilation on portage-multilib.
2011-01-13bug 351523: fix deprecation date for rc_sysWilliam Hubbs
The deprecation notice for automatic detection of the system type stated that the automatic detection will be removed no later than 2010/03/01, but it should state 2011/03/01.
2011-01-12release openrc-0.7.0William Hubbs
2011-01-12bug 351160: make openrc exit codes LSB compliantEray Aslan
* status on a stopped service now has a return code of 3 (was 1) * starting an already started service now has a return code of 0 (was 1) * stopping an already stopped service now has a return code of 0 (was 1)
2011-01-12bug 328675: add error checking to runscript.shWilliam Hubbs
runscript.sh needs to abort if the . command used to load conf.d files and the service script does not execute successfully. I would like to thank Mike Frysinger for his input wrt style on this patch.
2011-01-08update bug reporting informationMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-06Bug 349571 - SELinux fixes for bootmiscChris Richards
- delete the contents of the $RC_LIBEXECDIR/console directory but not the directory itself. - direct error output from the chmod call for /tmp to /dev/null.
2011-01-05Make sure old rc_sys code never runs if the rc_sys variable exists.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-05Update manpage for mention of rc_sys purpose.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-05Remove broken automatic LXC subsystem detection.Robin H. Johnson
Any system using cgroups was being detected as an LXC system. This was triggering on OpenVZ under RHEL6 as well as the "automated per tty task groups" as discussed on the LKML. All LXC users should now switch to the new rc_sys variable introduced in the previous patch. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-05Implement explicit selection of subsystem types.Robin H. Johnson
- Fixes bugs #347583, #349389, both of which were triggered by cgroups being detected as the LXC subsystem type. - Makes it much easier to select "prefix" type. - "rc -S" will now print a warning if you have not configured rc_sys in /etc/rc.conf - All other semantics of rc_sys are unchanged in this patch. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-05Document the order of the services within rc-status output.Robin H. Johnson
2010-12-28bug #349443: remove -openvz keyword from sysctl serviceWilliam Hubbs
Openvz supports sysctl settings which are different from the host settings, so allow the sysctl service to run for openvz systems.
2010-12-15Move the ip rule extra output to verbose mode only, and support verbose ↵Robin H. Johnson
output on addresses and routes.
2010-12-15Fix pointopoint->peer for iproute.Robin H. Johnson
2010-12-15Fix pointopoint typo in old ifconfig setup.Robin H. Johnson
2010-12-11Bug #266659: we really need to allow peer, pointtopoint in parsing config lines.Robin H. Johnson
2010-12-12Final documentation cleanup for updated bridge code.Robin H. Johnson
Specifically document how to handle the case of explicitly starting a bridge and then dynamically adding interfaces to it. brctl_br0='' bridge_add_eth0='br0'
2010-12-11Add "after lvm modules" as Flameeyes reports that LVM is starting too late ↵Robin H. Johnson
on his system in some cases.