Roy Marples
c556731ad3
Allow service_* functions to work off SVCNAME if no arguments passed
2007-12-18 16:51:59 +00:00
Roy Marples
05a9d0e25e
Allow service_* functions to work off SVCNAME if no arguments passed
2007-12-18 16:48:56 +00:00
Roy Marples
9f2403dffa
Remove Gentoo copyright from all files that I know I have written
2007-12-14 14:12:38 +00:00
Roy Marples
b73bd04cf3
If we need to regenrate the deptree in the boot runlevel, remove it afterwards as the dependencies may need programs brought up by localmount. The dependencies will be regenerated correctly in the next runlevel.
2007-12-14 12:23:13 +00:00
Roy Marples
17585a3c04
Don't be spammy or interactive when we don't output
2007-12-06 11:16:27 +00:00
Roy Marples
a178d53202
Move RC_ to EINFO_ for all env vars related to einfo.
2007-12-06 10:48:00 +00:00
Roy Marples
7921d9f3d0
Change to hilite and space a little more
2007-11-26 09:36:40 +00:00
Roy Marples
d81def80b0
Move /etc/conf.d/rc to /etc/rc.conf.
...
Lowercase all configurable variables, non configurations remain uppercase.
Replace rc_env_bool with rc_yesno.
Split localmount info procfs (Linux) and dumpon, savecore (BSD)
2007-11-23 12:04:11 +00:00
Roy Marples
f077f179ed
touch ups
2007-11-22 21:46:51 +00:00
Roy Marples
c94bfb2f9b
Open RC -> OpenRC
2007-11-20 13:44:03 +00:00
Roy Marples
81715c3159
Display version on start and allow --version to work
2007-11-19 16:41:36 +00:00
Roy Marples
a8f4032d29
We don't define a version yet.
2007-11-14 15:32:01 +00:00
Roy Marples
39227ede1d
relicense as 2-clause BSD, with the kind permission of Gentoo
2007-11-14 15:22:04 +00:00
Roy Marples
f8ad30fc6e
Really remove env-update
2007-11-14 13:46:21 +00:00
Roy Marples
c8de77fbbe
Fix starting state and clean some whitespace
2007-10-31 22:34:26 +00:00
Roy Marples
7cd70aee4d
You can now log baselayout-2 again, through the RC_LOGGER conf.d/rc
...
setting. The log is temp stored in /lib/rc/init.d/rc.log and appended
to /var/log/rc.log if it's writeable. sysinit cannot be logged in Linux
as we rely on sysinit to bring the system up to a point where we can log.
single user cannot be logged on FreeBSD due to waitpid(0,0,0) incorrectly
waiting for the log daemon in another process group.
2007-10-31 15:46:56 +00:00
Roy Marples
c9fe3ade4c
rc --override foo will override the runlevel to load after boot or single user runlevels to avoid rc recursion, #196338
2007-10-29 16:02:18 +00:00
Roy Marples
0764a6cb46
Stop using asprintf
2007-10-23 20:43:45 +00:00
Roy Marples
9dddb43eb4
Wait for plugins to finish before moving on.
2007-10-22 19:33:42 +00:00
Roy Marples
5d215f9d63
const correctness
2007-10-15 14:40:53 +00:00
Roy Marples
20a149b2c7
malloc over fatty buffers
2007-10-12 00:01:33 +00:00
Roy Marples
e3bc6666d6
malloc data size, not pointer size
2007-10-11 23:17:53 +00:00
Roy Marples
2613316686
Fix failed services a little, and make timeout more sane
2007-10-09 21:13:08 +00:00
Roy Marples
d468572206
Improve applet help a little. Also, if mountinfo as any mounts given, work explictly with --netdev/--nonetdev
2007-10-09 17:41:53 +00:00
Roy Marples
e89805e0c0
Quiet some compile time warnings on uclibc
2007-10-09 12:52:09 +00:00
Roy Marples
cd4bce7e8d
Wups, should be xstrdup
2007-10-08 11:16:22 +00:00
Roy Marples
a89ceb7e2c
Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore
2007-10-08 11:11:21 +00:00
Roy Marples
e7dab9bb91
Move rc_env_filter and rc_env_config out of librc and into rc
2007-10-08 11:07:39 +00:00
Roy Marples
632bd4d1f0
Fix a few errors with the last few commits
2007-10-05 11:31:17 +00:00
Roy Marples
9ff89f8027
Punt rc_waitpid
2007-10-05 11:04:49 +00:00
Roy Marples
3bfba57f5b
Punt rc_rm_dir
2007-10-05 10:36:53 +00:00
Roy Marples
05b8eff319
Punt rc_ls_dir
2007-10-05 10:16:14 +00:00
Roy Marples
87ea3e9e3b
Punt rc_is_dir
2007-10-04 16:54:29 +00:00
Roy Marples
6d5ac5716b
rc_make_env -> rc_env_config, rc_filter_env -> rc_env_filter
2007-10-03 14:48:50 +00:00
Roy Marples
4b7efeafa6
rc_service_option_set -> rc_service_value_set, rc_service_option_get -> rc_service_value_get
2007-10-03 14:22:45 +00:00
Roy Marples
b675ca4779
Compile fix
2007-10-02 14:37:30 +00:00
Roy Marples
69ebf0c738
rc_allow_plug -> rc_service_plugable
2007-10-02 09:57:23 +00:00
Roy Marples
cef0ad3215
rc_set_service_option -> rc_service_option_set, rc_get_service_option -> rc_service_option_get
2007-10-02 09:02:08 +00:00
Roy Marples
0fae5deeb1
Plug a leak
2007-09-29 17:20:52 +00:00
Roy Marples
b19e646575
Rationalise more functions into rc_service_
2007-09-29 16:54:58 +00:00
Roy Marples
837f43e163
librc no longer uses libeinfo. deptree function names are now all under rc_deptree_
2007-09-29 16:42:08 +00:00
Roy Marples
7274301be2
rc_service_state now returns the state as a mask, which means that we can do things with just the one call making is more efficient.
2007-09-28 14:53:38 +00:00
Roy Marples
6f7f447978
enums are now fixed to specific values and are in UPPER CASE.
2007-09-28 12:29:23 +00:00
Roy Marples
8a7b58a73d
rc_is_env is now rc_env_bool and just works with boolean values.
2007-09-26 07:05:33 +00:00
Roy Marples
c6c7df47a0
Revert last patch
2007-09-25 17:30:07 +00:00
Roy Marples
1a6451654f
We no longer use bool in our public headers, using int instead.
2007-09-25 17:19:02 +00:00
Mike Frysinger
284286004e
Add support for describing the options in the C programs.
2007-09-25 16:21:38 +00:00
Roy Marples
1e4e8ed27a
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
2007-09-25 15:38:21 +00:00
Roy Marples
495690ea5e
Plug some leaks
2007-09-24 09:07:00 +00:00
Roy Marples
b6aa1c857c
Added the checkown applet based on the work by Renato Caldas, #192682
...
checkdir ensures that the specified files (or directories) are owned
by the current user/group or as specified on the command line. You can
optionally check permissions too.
2007-09-19 16:27:37 +00:00