Commit Graph

70 Commits

Author SHA1 Message Date
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
Roy Marples
0c25b359de Allow bash arrays to be flattened to make some configs easier. 2007-11-14 18:23:59 +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
388f3ab9c5 Fix up display for tab delimited foo 2007-11-02 17:03:29 +00:00
Roy Marples
80124a050c Work cleanly with bridges on kernels without TCP, #197791. 2007-11-01 22:25:53 +00:00
Roy Marples
be13c0018b Fix fallback, #197788. 2007-11-01 18:15:30 +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
7d2c240c25 Embed newlines in __IFS to save our identing 2007-10-30 11:37:49 +00:00
Roy Marples
e372729b8c Network config arrays are now split by embedded new lines instead of being evaled into space separated values. This makes it easier to read, maintain and document as discussed on gentoo-dev. 2007-10-29 09:45:49 +00:00
Roy Marples
dc0ba7ebf3 netmount, localmount, halt.sh and net scripts now check OS specific flags to see if a mount is network mounted (linux = fstab, *bsd = "local" in mount options) or not, #192772. 2007-10-09 15:33:05 +00:00
Roy Marples
bd83448633 Document help and status 2007-10-04 14:57:51 +00:00
Roy Marples
24e0790e38 Fix rc-help regarding per runlevel config files 2007-10-04 14:44:13 +00:00
Roy Marples
162887c364 -C should force no colour as well 2007-09-28 19:29:59 +00:00
Roy Marples
b894cdb738 net.sh now checks to see if root is net mounted if no predown function
exists, #194074.
2007-09-28 12:46:59 +00:00
Roy Marples
cb2959ef76 Use mkdir to test. 2007-09-24 15:28:48 +00:00
Roy Marples
e95cea3d86 Split our rc commands out into general use vs service commands 2007-09-24 12:09:43 +00:00
Roy Marples
faa555efe2 No need for this convulted sed now our prefixed output is on a direct terminal again :) 2007-09-21 08:54:36 +00:00
Roy Marples
77f9015f0b /lib/rcscripts -> /lib/rc 2007-09-19 13:53:40 +00:00
Roy Marples
47f21d06a0 Fix fallback configurations 2007-09-17 21:38:58 +00:00
Roy Marples
fac4de2b46 Portability 2007-09-17 20:59:55 +00:00
Roy Marples
2d39857170 Don't use local here 2007-09-02 12:55:18 +00:00
Roy Marples
a9ebc7a2af Only generate dependencies for Gentoo scripts, #190547. 2007-08-31 16:21:19 +00:00
Roy Marples
144d9653e1 Undocument pause action, fix --nodeps and --ifstarted, #190045. 2007-08-28 13:06:44 +00:00
Mike Frysinger
4a23e42be8 Make sure we list all config files in rc help output. 2007-08-25 18:17:05 +00:00
Roy Marples
eba9b8ac14 Fully move esyslog into rc 2007-08-16 17:09:57 +00:00
Roy Marples
b8b1352b38 whitespace 2007-08-15 17:47:25 +00:00
Roy Marples
2ad4a5ba4a Add config to rc-help.sh 2007-08-15 16:58:51 +00:00
Roy Marples
3950eb6eba `config /etc/fstab' can now be used in depend() functions to show that
the deptree should be regenerated if /etc/fstab has changed.
2007-08-15 14:49:41 +00:00
Roy Marples
f1f5b0c367 whitespace 2007-07-22 11:28:38 +00:00
Roy Marples
6c54d47341 Had a brain fart - just echo to fd3 2007-07-22 11:27:26 +00:00
Roy Marples
52664d77f9 Cater for einfo calls inside the depend function 2007-07-22 11:23:56 +00:00
Roy Marples
b67f71ca5d Harden gendepends.sh some more so we only capture the stdout we want from
the depend function, #186072.
2007-07-22 10:45:56 +00:00
Roy Marples
26d11b33cf Use printf so we don't put blank lines at the top of new files and fix mountinfo for nfs roots 2007-07-16 17:07:15 +00:00
Roy Marples
42a5cb043b Allow zsh to work as our shell 2007-07-16 16:22:37 +00:00
Roy Marples
cffbaa6c4e Use echo instead of touch - saves on forking 2007-07-13 00:04:20 +00:00
Roy Marples
5257ba51b9 Don't unmount network filesystems in localmount or halt.sh, #175602. 2007-07-11 17:27:46 +00:00
Roy Marples
356c41f77c Punt the dodgy ebuffer code. We now force prefixing for parallel starts which also reduces our variable pollution. 2007-07-11 12:06:37 +00:00
Roy Marples
05201b514b init scripts and their extra options can now have descriptions, #184327. 2007-07-10 19:09:41 +00:00
Roy Marples
0234605bf4 Up the interface after preup incase preup brings it down 2007-07-04 14:21:24 +00:00
Roy Marples
27344f7f27 Use killall5 again so we can cleanly remount / readonly, #168977
and #177689.
2007-05-30 22:30:54 +00:00