Roy Marples
d6da8e8c48
sysinit is now a real runlevel that handles things like udev, dmesg and
...
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.
2008-10-10 08:37:21 +00:00
Roy Marples
7a6112d3b0
Punt STAILQ and just use TAILQ so we're a bit more portable.
2008-07-07 14:16:46 +00:00
Roy Marples
a88a177f99
Add older_than function to complement newer_than function. Also make the userland instance reversed to be compatable with current baselayout, which truely does suck.
2008-07-03 13:11:47 +00:00
Roy Marples
bf8f0da921
fuzzy dependency ordering should be started, starting, stopped whilst checking runlevel, bootlevel, any at each stage.
2008-06-10 15:19:46 +00:00
Roy Marples
dc891b0647
Remove broken before dependencies, Gentoo #224171 .
2008-06-05 10:14:11 +00:00
Roy Marples
3525e602d6
Use addu instead of another loop.
2008-06-04 19:07:09 +00:00
Roy Marples
79ebd89d19
Only add a backreference if it doesn't already exist.
2008-06-04 19:00:46 +00:00
Roy Marples
e6aed12328
No need to check type twice like this.
2008-06-04 12:47:06 +00:00
Roy Marples
83ade5b701
Style.
2008-06-04 12:44:45 +00:00
Roy Marples
f13ea77491
The real fix for the last commit is to uncomment some code - d'oh.
2008-05-12 23:33:40 +00:00
Roy Marples
3c2b93fc9c
Check we have a list before running depends.
2008-04-26 14:59:07 +00:00
Roy Marples
b5d829789f
Check we have a list before running depends.
2008-04-26 14:57:39 +00:00
Roy Marples
dc5d63aa97
Add RC_TMPDIR so that there's a writeable location during boot.
2008-04-21 10:29:29 +00:00
Roy Marples
f0aacec02e
Cast to unsigned char for ctype calls.
2008-04-17 10:19:58 +00:00
Roy Marples
99d5046a56
Don't assume that we have a list returned.
2008-04-10 08:49:05 +00:00
Roy Marples
15d34d0a16
Add license blurb to a few files and append my email to my name.
2008-03-26 17:53:37 +00:00
Roy Marples
eea30772d4
Fix last commit.
2008-03-19 22:11:22 +00:00
Roy Marples
51c825ceee
Make rc_getline private and save it's buffer so it's sort of like getline from glibc.
2008-03-17 21:27:37 +00:00
Roy Marples
4c14666423
Punt the rc_strcatpaths function and use snprintf instead to save on expensive malloc calls.
2008-03-17 13:25:56 +00:00
Roy Marples
40930d7d0a
Use correct TAILQ_CONCAT macro when not defined.
2008-03-16 17:27:13 +00:00
Roy Marples
cb9da6a262
Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF.
2008-03-16 17:00:56 +00:00
Roy Marples
6baff6cd1d
Don't store empty services.
2008-03-04 10:36:20 +00:00
Roy Marples
0aedc02860
Introduce LOCAL_PREFIX for a user maintained script location.
2008-03-03 10:33:42 +00:00
Roy Marples
f092045650
Support the use of PREFIX and PKG_PREFIX.
2008-02-28 11:08:49 +00:00
Roy Marples
ad780077d2
Welcome to 2008.
2008-02-22 12:07:34 +00:00
Roy Marples
7dec6f4025
Don't warn about removed services through use of the nosys keyword.
2008-02-19 22:04:24 +00:00
Roy Marples
d7129163ce
Fix compile warning, and free removed depinfo's
2008-02-19 19:43:31 +00:00
Roy Marples
42dd9965cc
Default to using C99 standard.
2008-02-19 16:49:28 +00:00
Roy Marples
916a4463ce
Fix some warnings.
2008-02-19 16:05:42 +00:00
Roy Marples
e1e36b2872
keywords -> keyword
2008-02-19 14:36:22 +00:00
Roy Marples
0364bb2c84
Add the nojail keyword which excludes services marked as such from the dependency tree when in a jail, #bug 22
2008-02-19 14:15:53 +00:00
Roy Marples
08a5bdbcb3
RC_DEP_START/STOP should only be used for ordering services, and not the actual dependencies ofthe services themselves. This allows coldplugged services to satisfy the net dependency for rc ordering them correctly but not for services that require net and strict is on.
2008-02-03 23:27:16 +00:00
Roy Marples
fef5d0af59
Constantise as much as possible so that it reduces COW usage.
2008-02-01 19:54:46 +00:00
Roy Marples
3f0381e3e6
Use the variable instead of type for sizeof.
2008-01-30 14:46:08 +00:00
Roy Marples
61e36be694
Add xzalloc function to reduce size.
2008-01-30 14:34:55 +00:00
Roy Marples
51a9c647b9
Allow !net to remove the net provision from dependencies.
2008-01-30 13:37:20 +00:00
Roy Marples
07728abbc1
Checking first char for null is more efficient than strlen.
2008-01-21 15:30:40 +00:00
Roy Marples
3e0f49b846
rc_newer_than no longer tests if souce has data, making it a more logical function. As such, we add the existss function to check for existance and size when checking to see if the deptree needs an update.
2008-01-15 09:24:50 +00:00
Roy Marples
d695407114
Add support for is_newer_than and is_older_than. is_older_than currently doesn't work as expected, but is_newer_than works fine.
2008-01-14 08:12:37 +00:00
Mike Frysinger
6aab712cb4
strip trailing newlines
2008-01-14 05:05:22 +00:00
Roy Marples
abde759d5b
Re-indent to a standard tw of 8.
2008-01-11 15:51:40 +00:00
Roy Marples
43d0f3fc76
rc_getline keeps expanding it's malloced buffer until it has read a whole line or EOF. All functions which read into static buffers have been changed to use fhis function to avoid any potential overflows and to ensure we really do read a long long config line.
2008-01-07 12:29:30 +00:00
Roy Marples
16a2c82bd1
We should check we resolved a service before stating it's existance.
2008-01-06 21:06:47 +00:00
Roy Marples
ac21d75300
Add some .mk stubs to impersonate bsk .mk files to make writing our Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.
2008-01-05 19:25:55 +00:00