Roy Marples
6ca21b4c6a
More make fixes
2008-01-10 16:57:05 +00:00
Roy Marples
4314784520
Allow for OS and SUBOS folders so we can introduce NetBSD scripts whilst keeping BSD for all BSD's.
2008-01-10 16:35:59 +00:00
Roy Marples
da4217fec8
Add net config's to have their own depend function per interface.
2008-01-06 13:06:56 +00:00
Roy Marples
ddb3ab4704
Use LIBNAME for multilib so as not to conflict with LIB
2008-01-05 21:05:19 +00:00
Roy Marples
cc96c0933d
Juggle the Makefiles so that sh knows about NET_LO
2008-01-03 15:48:33 +00:00
Roy Marples
19765f289c
Move the linking of files in /etc/init.d into the sh/Makefile so that install -jN works.
2008-01-03 14:49:34 +00:00
Roy Marples
28d7a19201
Allow rc_$service_$deptype in rc.conf
2008-01-02 15:42:52 +00:00
Roy Marples
fadee8e656
Move _shell_var shell function to shell_var C applet
2008-01-02 15:38:37 +00:00
Roy Marples
a273f8df55
Fix the adding of default routes
2007-12-31 09:28:53 +00:00
Roy Marples
b6aa56ce14
Fix metric_$IFVAR
2007-12-31 09:28:34 +00:00
Roy Marples
b6fcfd1157
We should export SVCNAME so service_* functions work in depend
2007-12-30 16:59:56 +00:00
Roy Marples
cbea91cae5
Remove rc-help.sh and replace with a man page for runscript 8.
2007-12-20 17:39:13 +00:00
Roy Marples
e4b73c506b
Describe extra_started_commands also.
2007-12-17 14:29:19 +00:00
Roy Marples
a010d0bb69
Remove the try and check_statedir functions
2007-12-14 14:19:03 +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
a3db3bac62
Allow services to be in /usr/local/etc/init.d, but disallow them being added to the boot runlevel.
2007-12-14 12:24:16 +00:00
Roy Marples
f8db842dd2
Default to correct init dir and preserve depconfig
2007-12-14 12:17:57 +00:00
Roy Marples
5541d3e385
We should only do colours if fd1 is a terminal by default
2007-12-14 12:16:05 +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
07e3d69c52
Our default start command should correctly recover on failed re-entrant services
2007-12-04 16:15:32 +00:00
Roy Marples
ba3248e6d2
Preserve IFS correctly
2007-12-04 14:18:41 +00:00
Roy Marples
bf8d8a9be7
rc-help.sh should use standard ecolours vs its internal ideas
2007-12-03 16:16:48 +00:00
Roy Marples
7683c5056a
fix last stupid error
2007-11-30 09:59:10 +00:00
Roy Marples
a6d8b76876
Ensure that lo0 gets 127.0.0.1/8 with a space separated config
2007-11-30 09:38:01 +00:00
Roy Marples
16ad975b2d
Allow services to define which extra commands require the service to be started
2007-11-29 16:23:59 +00:00
Roy Marples
82df7e4584
Use shorthand for loops
2007-11-29 11:23:06 +00:00
Roy Marples
50161bef0e
Allow space separated configs to work for CIDR address styles
2007-11-29 11:17:50 +00:00
Roy Marples
f0aa06b586
Fix whitespace in configs
2007-11-29 09:45:57 +00:00
Roy Marples
ac9279cc0d
Massive whitespace cleanup
2007-11-28 15:45:03 +00:00
Roy Marples
444f23e2d1
resolvconf may not be in /sbin
2007-11-28 14:32:24 +00:00
Roy Marples
d651155b61
Sanitize our PATH a bit better, and terminate it correctly in start-stop-daemon.
2007-11-28 13:40:15 +00:00
Roy Marples
8ea741d699
Support required_dirs and required_files. Allow services to mark inactive if using templates and fake commands if in background.
2007-11-28 13:08:25 +00:00
Roy Marples
8a328b7408
Allow whitespace in routing commands, Gentoo bug #200458 .
2007-11-28 10:04:15 +00:00
Roy Marples
49edf58fc1
Don't rely on sed being available when calculating deps
2007-11-26 09:56:22 +00:00
Roy Marples
6bc37fd203
this is still an env var
2007-11-23 22:22:18 +00:00
Roy Marples
d7ea2987d6
grep isn't always in /bin
2007-11-23 13:52:15 +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
a1b9dabf4e
Use yesno for more robustness
2007-11-22 13:37:24 +00:00
Roy Marples
09c5e5d415
Use yesno for more robustness
2007-11-22 13:28:14 +00:00
Roy Marples
ee61f46309
Use yesno
2007-11-22 12:20:40 +00:00
Roy Marples
4b28587704
Add a yesno function to check the boolean value of a variable
2007-11-22 12:18:24 +00:00
Roy Marples
b321c6891e
The BSD's don't need to umount cleanly when shuttind down, as they have a special kernel service to handle this. As sch, don't error if we don't have fuser
2007-11-21 15:41:45 +00:00
Roy Marples
95f8344874
We should include local paths
2007-11-21 15:40:42 +00:00
Roy Marples
a76f2c20e4
opts -> extra_commands. This is much more descriptive.
2007-11-20 18:19:48 +00:00
Roy Marples
42b057edbe
Add a rarpd init script and allow templates to add start-stop-daemon arguments
2007-11-20 17:10:35 +00:00
Roy Marples
ed0074cb44
start -> stop
2007-11-20 10:32:47 +00:00
Roy Marples
df523ccfee
runscript.sh now provides default start/stop functions if command and pidfile variables are set. We also run $cmd_pre and $cmd_post commands and return accordingly.
2007-11-20 10:24:40 +00:00
Roy Marples
88ccccc22a
Move runlevel and lib logic to the sub Makefiles
2007-11-19 16:42:28 +00:00
Roy Marples
5f8cf73b22
Our build chain now works with GNU and BSD make implementations
2007-11-19 13:48:43 +00:00