summaryrefslogtreecommitdiff
path: root/src/librc/librc-depend.c
Commit message (Collapse)AuthorAge
* librc: fix off-by-one bugNatanael Copa2013-10-04
| | | | | | | We need allocate space for both the added leading '-' and the trailing '\0'. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* set the RC_UNAME environment variable when updating dependenciesWilliam Hubbs2012-10-04
| | | | | | | This is needed because the network script uses this variable in the depend() function but it wasn't exported when this was run. Reported-by: <aaly90@gmail.com>
* Reduce overhead by leaving rc_deptree_update_needed() as soon as possibleChristian Ruppert2012-04-26
| | | | | | There's no need to check any further if we're returning true anyway. Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Use RC_CONF instead of the hardcoded /etc/rc.confChristian Ruppert2011-06-28
|
* librc: tweak style: foo () -> foo()Mike Frysinger2011-05-28
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* typo fixWilliam Hubbs2011-04-09
| | | | | X-Gentoo-Bug: 217999 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=217999
* Bug #351570: Fix hidden functions visibility for rc_deptree_load_file.Robin H. Johnson2011-01-17
|
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* 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.
* Only allow one service to be provided by default.Roy Marples2009-11-14
| | | | Fixes Gentoo #293139.
* Don't provide ourself, fixes #190Roy Marples2009-07-20
|
* We should use -feature instead of nofeature.Roy Marples2009-07-01
| | | | | | This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Don't start services when their need dependency is brokenRoy Marples2009-04-28
|
* Fix return value for tests.Roy Marples2009-02-12
|
* rc_newer/older_than only report file if time_t is a pointer, so itRoy Marples2009-01-13
| | | | | should take precedence in the argument list.
* We now warn about clock skewsRoy Marples2009-01-12
| | | | | | rc-update -u will force a regen of the dep tree rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
* Ignore after dependencies for shutdown when not in the runlevel.Roy Marples2008-11-04
|
* Avoid depends not in the runlevel for sysinit and shutdown.Roy Marples2008-11-03
|
* Add a new shutdown runlevel, Gentoo #224537.Roy Marples2008-11-03
| | | | | | | Split halt.sh into halt, killprocs, romount and savecache services. The reboot runlevel is removed but mapped to shutdown. The halt script should be moved to the sysvinit package.
* Remove coldplug and just have hotplug which is a list of allowed/disallowed ↵Roy Marples2008-10-10
| | | | services. Makes things much easier.
* sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples2008-10-10
| | | | | | | | | | | mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version.
* Punt STAILQ and just use TAILQ so we're a bit more portable.Roy Marples2008-07-07
|
* Add older_than function to complement newer_than function. Also make the ↵Roy Marples2008-07-03
| | | | userland instance reversed to be compatable with current baselayout, which truely does suck.
* fuzzy dependency ordering should be started, starting, stopped whilst ↵Roy Marples2008-06-10
| | | | checking runlevel, bootlevel, any at each stage.
* Remove broken before dependencies, Gentoo #224171.Roy Marples2008-06-05
|
* Use addu instead of another loop.Roy Marples2008-06-04
|
* Only add a backreference if it doesn't already exist.Roy Marples2008-06-04
|
* No need to check type twice like this.Roy Marples2008-06-04
|
* Style.Roy Marples2008-06-04
|
* The real fix for the last commit is to uncomment some code - d'oh.Roy Marples2008-05-12
|
* Check we have a list before running depends.Roy Marples2008-04-26
|
* Check we have a list before running depends.Roy Marples2008-04-26
|
* Add RC_TMPDIR so that there's a writeable location during boot.Roy Marples2008-04-21
|
* Cast to unsigned char for ctype calls.Roy Marples2008-04-17
|
* Don't assume that we have a list returned.Roy Marples2008-04-10
|
* Add license blurb to a few files and append my email to my name.Roy Marples2008-03-26
|
* Fix last commit.Roy Marples2008-03-19
|
* Make rc_getline private and save it's buffer so it's sort of like getline ↵Roy Marples2008-03-17
| | | | from glibc.
* Punt the rc_strcatpaths function and use snprintf instead to save on ↵Roy Marples2008-03-17
| | | | expensive malloc calls.
* Use correct TAILQ_CONCAT macro when not defined.Roy Marples2008-03-16
|
* Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples2008-03-16
| | | | from queue(3). Refactor code style around the BSD KNF.
* Don't store empty services.Roy Marples2008-03-04
|
* Introduce LOCAL_PREFIX for a user maintained script location.Roy Marples2008-03-03
|
* Support the use of PREFIX and PKG_PREFIX.Roy Marples2008-02-28
|
* Welcome to 2008.Roy Marples2008-02-22
|
* Don't warn about removed services through use of the nosys keyword.Roy Marples2008-02-19
|
* Fix compile warning, and free removed depinfo'sRoy Marples2008-02-19
|