summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* typo fixWilliam Hubbs2011-04-09
| | | | | X-Gentoo-Bug: 217999 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=217999
* new implementation of applet optionWilliam Hubbs2011-02-16
| | | | | | | | | | This reworks the implementation of the --applet option so that it is processed in run_applets() and does not require two calls to the getopts_long() function. It is based on code by Robin Johnson and Chris Richards. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
* make version option commonWilliam Hubbs2011-02-14
| | | | | This reworks the code for the version option so that it is part of the parser loop and is a common option to all applets.
* tests: filter valid parisc relocsMike Frysinger2011-02-14
| | | | | | | | Parisc generates a few relocs against internal symbols which are OK. X-Gentoo-Bug: 258913 X-Gentoo-Bug-URL: http://bugs.gentoo.org/258913 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix symlink targetWilliam Hubbs2011-02-07
| | | | | | The target for the symlinks in ${SBINDIR} (the same directory as the rc binary) was "rc". This is not correct; the target should be ${SBINDIR}/rc instead.
* rework pam, ncurses and termcap include filesWilliam Hubbs2011-02-04
| | | | | | | This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
* remove unnecessary shell callsWilliam Hubbs2011-02-04
| | | | | | The main makefile, init.d/Makefile and src/librc/Makefile all contain several shell calls which can be handled as make conditionals. This switches them to conditionals.
* selinux: replace symlinks with wrapper scriptsChris Richards2011-01-31
| | | | | | | | This needs to be done on selinux systems so the proper context can be set for each rc applet. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
* use immediate evaluation for shell callsWilliam Hubbs2011-01-31
| | | | | | | | This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
* librc: delete trailing newlinesMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: check for trailing blank newlinesMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Document that rc_sys_v{1,2} should not be used outside of OpenRC.Robin H. Johnson2011-01-17
|
* Bug #351570: Fix hidden functions visibility for rc_deptree_load_file.Robin H. Johnson2011-01-17
|
* Build cleanup: librc.funcs.hidden.list is generated by testsuite.Robin H. Johnson2011-01-17
|
* Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson2011-01-17
| | | | | | | | | | | 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>
* tests: check for common style issuesMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger2011-01-17
| | | | | | POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Style fix: "char *foo" not "char* foo".Robin H. Johnson2011-01-17
|
* Style fix: /* */ comments not // comments.Robin H. Johnson2011-01-17
|
* Style fix: "while (" not "while(".Robin H. Johnson2011-01-17
|
* Style fix: "if (" not "if(".Robin H. Johnson2011-01-17
|
* Better error checking of argc for --applet call.Robin H. Johnson2011-01-17
|
* Use xstrdup for style.Robin H. Johnson2011-01-17
|
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* Bug #351712: Implement --applet selection mode for SELinux wrappers.Robin H. Johnson2011-01-17
| | | | | | | 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>
* Add new option -F to rc-depend tool, so that we can debug user deptree files ↵Robin H. Johnson2011-01-17
| | | | easily.
* Factor out new function rc_deptree_load_file to aid in debugging deptree ↵Robin H. Johnson2011-01-17
| | | | files from users. Loads from a given filename instead of the hardcoded RC_DEPTREE_CACHE define.
* bug 351160: make openrc exit codes LSB compliantEray Aslan2011-01-12
| | | | | | * 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)
* Make sure old rc_sys code never runs if the rc_sys variable exists.Robin H. Johnson2011-01-05
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Remove broken automatic LXC subsystem detection.Robin H. Johnson2011-01-05
| | | | | | | | | | | 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>
* Implement explicit selection of subsystem types.Robin H. Johnson2011-01-05
| | | | | | | | | | | - 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>
* Avoid race condition in runscript (bug #319865)Thomas Pfaff2010-12-03
| | | | | | | | | | | | | | | | Under normal conditions, runscript creates one child and waits for its termination, which is signaled by a pipe write from the SIGCHLD sighandler. When running killprocs however more than one SIGHCLD signal is generated, at least on all of my amd64 boxes running on real hardware and in vmware. When the first SIGCHLD occurs svc_exec leaves the loop and closes the pipe. Subsequent SIGCHLDs during the close can lead to a race condition and create an EBADF error in the pipe write (pipe is closed but the file handle is still != -1). We avoid this by blocking SIGHCHLD during the pipe close.
* restore init.d pause optionMike Frysinger2010-04-09
|
* restore old e* func outputMike Frysinger2010-04-09
| | | | | | | | | | | Gentoo has always used the sytle: * moo ... [ ok ] Latest openrc now does: * moo... [ok] Realistically, 4 spaces out of 80 on reduced terminals doesn't make any sort of realistic difference and it's been just fine for the last 10 years, so keep the default behavior.
* Fix -s and -S.Roy Marples2010-03-26
|
* Fix two leaks.Roy Marples2010-03-17
|
* random spelling fixesMike Frysinger2010-01-08
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* start-stop-daemon can now set process IO scheduling.Roy Marples2009-12-14
|
* Only allow one service to be provided by default.Roy Marples2009-11-14
| | | | Fixes Gentoo #293139.
* Fix logicRoy Marples2009-11-13
|
* Add a --warn option to just warn when reference file does not exist.Roy Marples2009-11-13
| | | | Fixes Gentoo #291894.
* Add support for Linux Containers, fixes #202.Roy Marples2009-11-04
| | | | Patch by bug reporter.
* Regenerate version.h if necessaryRoy Marples2009-10-16
|
* fix wait time for gentoo bug 288495William Hubbs2009-10-15
| | | | The wait time was in seconds. This patch converts it to milliseconds.
* Add new utility and init script swclock that sets the system time based onRoy Marples2009-10-13
| | | | | | | the mtime of a file. It saves the shutdown time to this file also. This is handy for systems without a working RTC chip. Based on an idea by Michael A. Smith <michael@smith-li.com>. Fixes Gentoo #272073.
* Add pkg-config support, fixes #187.Roy Marples2009-10-08
|
* Don't quote optsRoy Marples2009-09-21
|
* Allow init scripts to show their dependencies easierRoy Marples2009-09-04
|
* Add -P to start-stop-daemon to display a . for each second elapsed.Roy Marples2009-09-04
| | | | Fixes #197.