Roy Marples
4022522a81
cbasename -> basename_c
2007-12-19 13:53:52 +00:00
Roy Marples
cd45e54357
Introduce cbasename so we don't have to strdup(basename) and free all the time.
2007-12-19 12:46:08 +00:00
Roy Marples
47887ac7c3
usage now requires a global applet var instead of a define, don't prefix describe output and use generic usage for runscript.
2007-12-18 18:01:05 +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
acf425e822
Include time.h on linux
2007-12-07 14:31:51 +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
0490a9290a
Remove rc_service_wait as runscript.c should do the waiting. rc_deptree_depend now returns the exact depends as listed. This is so we can support a new 'keywords' directive. We can add whatever here, like 'notimeout' which means that an init script doesn't timeout. This removes the hardcoded check on checkfs and checkroot.
2007-12-05 17:48:07 +00:00
Roy Marples
44fe713062
RC_DEPEND_STRICT -> rc_depend_strict
2007-11-28 17:02:02 +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
7cf049cb35
Fix execing a for argument list too long
2007-11-22 12:09:46 +00:00
Roy Marples
0c52821cba
We cannot use realpath to resolv services as some are symlinks.
2007-11-21 15:38:07 +00:00
Roy Marples
2ef9c5c520
Only start plugins once we have made an exclusive file
2007-11-19 13:46:09 +00:00
Roy Marples
da153631e7
Run the hook_out if set
2007-11-16 11:58:41 +00:00
Roy Marples
505f6951c4
If starting and started or stopping and stopped, just warn and continue. Fixes Gentoo bug #176452 again.
2007-11-16 11:55:08 +00:00
Roy Marples
69a040bf85
Show help if we don't have any args, Gentoo #198380 .
2007-11-14 16:19:56 +00:00
Roy Marples
d3b7a91796
Use realpath to resolve our service.
2007-11-14 15:29:25 +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
c8de77fbbe
Fix starting state and clean some whitespace
2007-10-31 22:34:26 +00:00
Roy Marples
c02cc42b1d
Fix the restarting of services depending on the script you're restarting
2007-10-26 12:22:26 +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
25091eb4f4
Don't run the done hook twice
2007-10-10 06:24:08 +00:00
Roy Marples
183b7464d3
We should only have one block of code that restores state
2007-10-09 21:20:10 +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
db468457dc
Foo, should be a mask
2007-10-09 15:47:25 +00:00
Roy Marples
537ef36350
Ensure that runscript returns 0 when service is started
2007-10-09 15:44:22 +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
9ff89f8027
Punt rc_waitpid
2007-10-05 11:04:49 +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
563c6f46c0
rc_schedule_clear -> rc_service_schedule_clear, rc_schedule_start_service -> rc_service_schedule_start
2007-10-03 14:18:52 +00:00
Roy Marples
69ebf0c738
rc_allow_plug -> rc_service_plugable
2007-10-02 09:57:23 +00:00
Roy Marples
7d5c82cf63
rc_wait_service -> rc_service_wait
2007-09-29 17:03:38 +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
b153f67fe3
Ensure reading the console still works in parallel startup
2007-09-29 10:17:28 +00:00
Roy Marples
fc1bfe4234
Crashed is not a baselayout state as such
2007-09-28 15:04:15 +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
Mike Frysinger
ab0edd43b9
unify verbose/quiet handling
2007-09-25 23:17:25 +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