William Hubbs
e152199860
release openrc-0.8.3
2011-06-19 21:37:55 -05:00
William Hubbs
d4bdd32897
fix comment in conf.d/consolefont
...
X-Gentoo-Bug: 368277
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=368277
2011-06-19 18:39:12 -05:00
Mike Frysinger
8947c00204
sysctl: do not make unknown keys fatal
...
If unknown keys are found, currently sysctl would add all of its valid
settings, but then leave itself marked as "stopped". Since this is not
really what we want, make unknown keys a non-fatal error.
Reported-by: Christian Ruppert <idl0r@gentoo.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-06-18 10:06:41 -05:00
Christian Ruppert
4eb37f67cf
Warn if deprecated commandline options are used for start-stop-daemon
2011-06-05 16:49:12 +02:00
Mike Frysinger
7ca74d7636
fix underquoting of wrapped color stubs of exit status
...
X-Gentoo-Bug: 369911
X-Gentoo-Bug-URL: http://bugs.gentoo.org/369911
Reported-by: Steve Dibb <beandog@gentoo.org >
Reported-by: Christian Ruppert <idl0r@gentoo.org >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-06-03 20:41:43 -04:00
Mike Frysinger
e49da2af91
clean up gitignore files
...
Rather than listing explicit object files, ignore all of them in
the whole tree.
Also ignore patch/gdb related files throughout.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-06-03 17:07:22 -04:00
Diego Elio Pettenò
a2c8e5ce50
Don't set hostname on containers.
...
LXC already provides a means to set the utsname/hostname of the system, so
avoid overriding the user's configuration through hostname here.
Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com >
2011-06-02 11:34:13 -05:00
Mike Frysinger
11d8b70d74
rc-update: sort "show" output
...
X-Gentoo-Bug: 367305
X-Gentoo-Bug-URL: http://bugs.gentoo.org/367305
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-28 12:11:37 -04:00
Mike Frysinger
227f831639
cc.mk: move debug.mk out of end Makefiles
...
Since we always want debug.mk whenever we include cc.mk, move the include
out of the Makefiles and into cc.mk itself. This also fixes an include
order bug in rc/Makefile where debug.mk is included before cc.mk and
breaks the default CFLAGS setup in cc.mk.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-28 12:00:34 -04:00
Mike Frysinger
98d3b407fe
cc.mk: enable -g by default
...
Can do no harm!
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-28 12:00:13 -04:00
Mike Frysinger
fe18c7bb63
librc: tweak style: foo () -> foo()
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-28 11:53:29 -04:00
Mike Frysinger
f8ff4a86a3
rc: delete now unused local "i" variable
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-28 11:42:49 -04:00
Christian Ruppert
d59e245bc7
Fix dirname calls in runscript
...
runscript will try to get the dir and basename of a file/link in case it
contains at least one slash. This patch gives a temporary copy of the path to
the dirname() function since dirname() can modify its argument.
2011-05-23 14:23:15 -05:00
William Hubbs
74c8667497
fix keymaps config file to show the correct variable name
...
X-Gentoo-Bug: 367283
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=367283
2011-05-17 13:06:55 -05:00
Mike Frysinger
3d56124ed1
only warn about /run if it exists
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-16 18:49:21 -04:00
Mike Frysinger
bb34ea886a
drop rc_sys funcs from removal schedule
...
The automagic detection isn't really problematic, and we allow people to
easily override this when detection isn't possible. On the other hand,
if people haven't configured rc_sys in their rc.conf, the lack of auto
detection can easily lead to an unbootable system.
Further, we're attempting to have a stable shared library ABI, which
dropping funcs from is not feasible.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-16 18:00:18 -04:00
William Hubbs
fd48bc09ff
net:bonding small style change for readability
2011-05-16 14:57:46 -05:00
Kfir Lavi
db1daa5857
Do not add slaves to bond interface if they are already added
...
X-Gentoo-Bug: 366653
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=366653
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
2011-05-16 09:21:18 -04:00
Mike Frysinger
2493a1f32e
net: ccwgroup: forward port changes from baselayout-1
...
Quite a bit of work happened in baselayout-1 on the ccwgroup module, but
seems it didn't make it into openrc. So forward port all the existing
code so we can work with more than just qeth and layer2 options.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-05-16 01:22:32 -04:00
William Hubbs
40341fcd7e
do not run services if openrc did not boot the system
...
X-Gentoo-Bug: 364159
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=364159
2011-05-11 14:54:41 -05:00
James Le Cuirot
8fcaba9a22
fix rc_service_extra_commands return value
...
If there were no extra commands, rc_service_extra_commands returned a
list containing a single empty string. This changes that to return an
empty list, which is more consistent with what you would expect.
X-Gentoo-Bug: 360013
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013
2011-04-27 15:27:16 -05:00
William Hubbs
04e256e3b8
fix list returned by rc_service_extra_commands
...
This function was returning the setting of the variable $opts, which is
not correct. $opts was used in baselayout-1, but it is replaced by
$extra_commands and $extra_started_commands in openrc.
This does not appear to break backward compatibility since this function
does not appear to be used anywhere in the openrc code.
Thanks to James Le Cuirot for the original patch.
X-Gentoo-Bug: 360013
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013
2011-04-27 14:46:59 -05:00
William Hubbs
b712a9161f
change udhcpc support to busybox udhcpc
...
This updates the udhcpc support to use busybox's udhcpc instead of the
stand alone version.
I would like to thank jackieku <kjackie@gmail.com > for assisting with
this update.
X-Gentoo-Bug: 205286
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=205286
2011-04-26 15:25:08 -05:00
William Hubbs
8202e7dce4
add back the eend command in start/stop for local service
...
This was added back due to a user request. It will always be on a line
of its ownbecause I'm considering adding more verbose info messages to
local that show when each service is run if local is run with the -v
option.
X-Gentoo-Bug: 363343
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363343
2011-04-21 13:02:49 -05:00
Robin H. Johnson
2d197357ef
[oldnet] Bug #363959 : Improve plug_timeout ifplugd/netplugd code.
...
- Add support for a global plug_timeout setting to match the
documentation.
- Update the documentation to also show per-interface configuration.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-04-19 17:49:20 +00:00
William Hubbs
b6409feaac
fix permissions for /run/lock
...
If /run/lock is a directory, set the ownership and permissions for it,
whether or not we created the directory.
2011-04-19 10:56:14 -05:00
Lars Wendler
ede4d1cd60
Don't unmount /run on shutdown
...
This is needed so that udev will stop properly on shutdown.
X-Gentoo-Bug: 363971
X-Gentoo-Bug-Url: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-04-18 15:26:19 -05:00
Amadeusz Żołnowski
64ef51ab09
Add support for /run directory
...
This is a new directory for storing volatile runtime data.
See https://lwn.net/Articles/436012
X-Gentoo-Bug: 363971
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-04-18 15:26:13 -05:00
William Hubbs
372bae3213
make rc_sys system specific
...
This rearranges the configuration files so it is more clear that the
rc_sys setting is system specific.
X-Gentoo-Bug: 363957
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363957
2011-04-18 14:42:02 -05:00
Anthony G. Basile
ac56ab7f6d
Check for /sys/module/usbcore before modprobe usbcore
...
The use of /proc/bus/usb to mount usbfs has been deprecated, but
the option is still available in the kernel. The new approach is
to use /sys. We should not modprobe usbcore if either /proc/bus/usb
or /sys/module/usbcore exist.
X-Gentoo-Bug: 363551
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363551
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
2011-04-17 09:12:20 -04:00
William Hubbs
ad8f455726
release openrc-0.8.2
2011-04-15 19:48:30 -05:00
William Hubbs
de0ded4ed0
revert changes for bug #292894
...
This is being done because these dependency changes caused a regression.
We will need to revisit the previously mentioned bug.
X-Gentoo-Bug: 363693
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363693
2011-04-15 19:21:20 -05:00
Sebastian Thorarensen
75722dac4e
termencoding should run after bootmisc
...
This change is necessary so that the unicode flag is not erased by
bootmisc.
X-Gentoo-Bug: 363611
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363611
2011-04-14 15:21:02 -05:00
William Hubbs
2d14b172fa
release openrc 0.8.1
2011-04-12 08:47:03 -05:00
William Hubbs
03cd55aa19
start loopback interface before mtab
...
X-Gentoo-Bug: 292894
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
2011-04-11 15:33:41 -05:00
William Hubbs
85827d474c
remove "after bootmisc" dependency from loopback interface
2011-04-10 17:24:44 -05:00
William Hubbs
8e925368b7
bring up the loopback interface earlier
...
For most situations, the loopback interface can depend on root instead
of localmount, so this patch makes that happen. It also adds comments to
the net.example files explaining when a user might want to change this
and giving an example.
I would like to thank Robin Johnson for the original patch and suggested
examples.
X-Gentoo-Bug: 292894
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-04-10 16:10:47 -05:00
William Hubbs
15660dbbfc
add fallback_routes support to network scripts
...
Add support for optional fallback_routes_* variables in the network scripts.
This is similar to the fallback_route_* support in baselayout-1.
However, if you do not have fallback_routes set for an interface but you
do have routes set, that setting will be used, so you do not need this
variable unless you want the fallback routes to be different from the
primary routes.
X-Gentoo-Bug: 250978
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=250978
2011-04-09 13:54:01 -05:00
William Hubbs
07db27d220
typo fix
...
X-Gentoo-Bug: 217999
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=217999
2011-04-09 13:00:44 -05:00
William Hubbs
16f7e90c6c
clarify documentation for -timeout keyword
2011-04-08 14:08:29 -05:00
William Hubbs
c7c278dfd4
do not timeout waiting for bootmisc to complete
...
It is possible for bootmisc to take longer than 60 seconds to complete
and services should not time out waiting for it.
X-Gentoo-Bug: 360405
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360405
2011-04-08 14:01:13 -05:00
William Hubbs
73c862b792
fix typo in ethtool.sh
...
This was causing the ethtool interface to not work.
X-Gentoo-Bug: 360481
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360481
2011-04-07 07:48:56 -05:00
William Hubbs
46e67badd2
fix typo in staticroute
...
X-Gentoo-Bug: 362205
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=362205
2011-04-07 07:19:53 -05:00
William Hubbs
67640d2d97
remove hard coded directory paths from link flags
...
Currently, we do not see a reason for these, and it causes an issue for
cross compilation.
X-Gentoo-Bug: 361465
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=361465
2011-04-01 17:32:12 -05:00
Robin H. Johnson
8a45d5e24e
Bug #360963 : Improve interface naming/set_name_type documentation on new vlan code.
...
This is primarily for users with set_name_type settings from previous
sysadmins can easily see what changes to make.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-03-29 07:54:50 +00:00
Marc Joliet
6e1239795f
remove bashism from ethtool module
...
X-Gentoo-Bug: 360367
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=360367
2011-03-27 15:45:45 -05:00
Mike Frysinger
7c1a2defb6
bootmisc: clean up tmpdir cleaning
...
Make sure that the `cd` into the $dir actually happened. This we don't
have to worry about relative paths deleting stuff it shouldn't. This
step shouldn't fail, but who knows, and better to be sane than to wipe
out someone's valuables.
When wiping, automatically fall back to a dedicated `find` if the initial
`rm` failed on us. This should help with the speed issues related to the
later `find`.
Have the later find only search the top level allowing `rm` to walk the
directory contents. This means that -xdev no longer applies, but since
the earlier `rm` wasn't doing -xdev either and no one has complained thus
far, let's assume it isn't an issue. Also convert to the -exec...+ form
so that we don't have to worry about long argument lists, and add -- to
the `rm` that was previously missing. In practice, this shouldn't matter
as we've already deleted all those files, but better safe than sorry.
When cleaning, since we've already done a `cd` into the $dir, no point in
prefixing all the paths with $dir too. Go with the relative loving.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
X-Gentoo-Bug: 359831
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=359831
2011-03-25 11:25:25 -05:00
William Hubbs
1d63e85794
rework test for mounted /proc
...
The previous test assumed that we could always rely on the minor fault
counter to change between reads of /proc/self/stat, but we found that
this is not the case.
The new test compares two reads of /proc/self/environ for which we have
set the same environment variable to two different values.
If the comparison shows the two reads have the same contents, we know
that /proc is not working.
I would like to thank Robin Johnson and Mike Frysinger for their input
for this patch.
X-Gentoo-Bug: 348416
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=348416
2011-03-24 19:14:16 -05:00
William Hubbs
25049d3e80
termencoding needs root to be mounted read/write
...
X-Gentoo-Bug: 360215
X-Gentoo-Bug-URL: http://bugs.gentoo.org/360215
2011-03-23 22:41:03 -05:00
William Hubbs
b875abd1a5
release openrc-0.8.0
2011-03-22 00:46:24 -05:00
William Hubbs
c020454c84
update documentation for windowkeys variable
...
The documentation makes a recommendation for the setting but does not
state the purpose of the variable.
X-Gentoo-Bug: 357869
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357869
2011-03-22 00:34:50 -05:00
Ed Wildgoose
60d8d4f5bb
do not delete addresses when stopping a ppp interface.
...
This is important in situations where ppp is being used in a demand
dialing setup.
X-Gentoo-Bug: 359069
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=359069
2011-03-21 23:55:55 -05:00
William Hubbs
c9912942f0
update documentation for rc_sys
...
Originally the plan was to deprecate this code, but this will not be
happening. There are some subsystems which can still be autodetected, so
we are keeping this code and allowing users to override the automatic
detection with this variable as well as set it to other subtypes we
cannot autodetect.
X-Gentoo-Bug: 357247
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357247
2011-03-21 23:04:08 -05:00
Mike Frysinger
9f5eb03e5e
net: bonding: avoid using bash string replace
...
X-Gentoo-Bug: 359311
X-Gentoo-Bug-URL: http://bugs.gentoo.org/359311
Reported-by: Raffaello D. Di Napoli <fastijum@gmail.com >
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-03-18 14:24:18 -04:00
Mike Frysinger
d7e48fe643
rc_sys: let default behavior be automagic
...
The default rc_sys behavior was changed to always require manual
intervention by users. This pretty much breaks all of the diff
system variants out there if people don't explicitly edit their
rc.conf file ahead of time. We should have things work "out of
the box" as much as possible and reasonable.
X-Gentoo-Bug: 357247
X-Gentoo-Bug-URL: http://bugs.gentoo.org/357247
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-03-14 20:35:08 -05:00
William Hubbs
87302487d2
savecache should not fail if we are shutting down
...
Since mount-ro needs to run unconditionally, we need to have savecache
report that it ran successfully when the system is shutting down.
X-Gentoo-Bug: 356393
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=356393
2011-03-06 11:50:06 -06:00
William Hubbs
0f3d6a01c7
remove references to the migration guide
...
The openrc code base is not gentoo specific, so I feel that we should
not refer to the migration guide in the comments inside the configuration
files.
2011-03-05 00:11:24 -06:00
William Hubbs
3fca6bd027
allow default rc_sys value to be set at build time
...
This allows the default value of rc_sys to be set when openrc is
compiled. This will allow openrc to be installed, e.g. on vserver guests
and will allow them to be rebooted without the need to edit rc.conf.
This patch is a combined effort between myself and Robin Johnson.
X-Gentoo-Bug: 357247
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357247
2011-03-05 00:04:06 -06:00
William Hubbs
202fa20cbc
fix typo
2011-03-03 15:06:39 -06:00
Robin H. Johnson
dfd42d1393
net/ethtool: official interface for changing ethtool params (bug #195479 )
...
Implement a consistent interface for changing ethtool parameters, as
suggested in bug 195479. All variable names are based on the long option
to ethtool to set each group of parameters. Multiple entries seperated
by newlines are permitted for variable values.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
X-Gentoo-Bug: 195479
2011-02-22 02:59:38 +00:00
Robin H. Johnson
22918ccf51
Update README.net to note that it represents newnet only.
2011-02-22 01:27:31 +00:00
Robin H. Johnson
20480048ca
net/iproute2: Pass required explicit -6 for IPv6 tunnels ( #347657 )
...
Tunnel modes ipip6 and ip6ip6 require an explicit family selection for
the ip tunnel call.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
X-Gentoo-Bug: 347657
2011-02-21 09:55:47 +00:00
Robin H. Johnson
683a21b0a0
net/vlan: update to use modern iproute2 interface
...
This replaces the vlan setup code that previously used the old vconfig
binary with a new implementation using the iproute2 interface.
vconfig does not handle many of the newer setups. No automatic migration
path is provided, as altering the configuration is non-trivial.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
Written-by: Guillaume Castagnino <casta@xwing.info >
X-Gentoo-Bug: 346365
2011-02-21 09:41:48 +00:00
William Hubbs
b512d0db98
new implementation of applet option
...
This reworks the implementation of the --applet option so that it is
processed in run_applets() and does not require two calls to the
getopts_long() function. It is based on code by Robin Johnson and Chris
Richards.
X-Gentoo-Bug: 351712
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-02-16 09:00:38 -06:00
William Hubbs
73d1a8698e
make version option common
...
This reworks the code for the version option so that it is part of the
parser loop and is a common option to all applets.
2011-02-14 18:40:05 -06:00
Sebastian Thorarensen
bae0a693a9
Set unicode mode immediately at boot without consolefont
...
X-Gentoo-Bug: 354793
X-Gentoo-Bug-URL: http://bugs.gentoo.org/354793
Signed-off-by: Anthony G. Basile <blueness@gentoo.org >
2011-02-14 18:54:35 -05:00
Mike Frysinger
35d38c3561
local: quote script names to handle spaces
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-14 12:06:58 -05:00
Mike Frysinger
c0aa27ef32
tests: filter valid parisc relocs
...
Parisc generates a few relocs against internal symbols which are OK.
X-Gentoo-Bug: 258913
X-Gentoo-Bug-URL: http://bugs.gentoo.org/258913
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-14 12:06:58 -05:00
Mike Frysinger
11fcb0217e
hwclock: fix typo from an earlier style commit
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-14 12:06:58 -05:00
Anthony G. Basile
c8b5078660
Fix bug #354805
2011-02-14 04:41:08 -05:00
Christian Wetzig
7bc920ab56
fix typo in iproute2 module
...
X-Gentoo-Bug: 354511
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=354511
2011-02-12 13:34:46 -06:00
William Hubbs
ebd79394a3
set timezone if RC_HCTOSYS is not set
...
We need to set the timezone for the system clock even when we allow the
kernel to set the time.
X-Gentoo-Bug: 248131
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-02-09 23:15:24 -06:00
William Hubbs
04379b2de9
fix symlink target
...
The target for the symlinks in ${SBINDIR} (the same directory as the rc
binary) was "rc". This is not correct; the target should be
${SBINDIR}/rc instead.
2011-02-07 02:25:00 -06:00
Christian
43678fd2c4
bridge.sh: use correct POSIX test, = not ==
...
X-Gentoo-Bug: 353124
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=353124
2011-02-05 07:24:11 -06:00
William Hubbs
db6d680765
rework pam, ncurses and termcap include files
...
This allows error checking inside the included files instead of either
including the appropriate file or a blank file.
Also the blank file named .mk gets removed by this change.
2011-02-04 22:30:30 -06:00
William Hubbs
a2e9cde737
remove BSD make code to handle including .depend
2011-02-04 22:28:57 -06:00
William Hubbs
aaaea44d22
use make conditional for -cstd flag
...
cc.mk was using ashell call to determine the value of the cstd variable.
This reworks that code so it uses a make conditional.
2011-02-04 22:26:23 -06:00
William Hubbs
19037cbd83
remove unnecessary shell calls
...
The main makefile, init.d/Makefile and src/librc/Makefile all contain
several shell calls which can be handled as make conditionals. This
switches them to conditionals.
2011-02-04 17:46:57 -06:00
Chris Richards
21c5a022af
selinux: replace symlinks with wrapper scripts
...
This needs to be done on selinux systems so the proper context can be
set for each rc applet.
X-Gentoo-Bug: 351712
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-01-31 14:54:02 -06:00
William Hubbs
cca7e9f7e1
use immediate evaluation for shell calls
...
This reworks the shell calls in the makefiles to use immediate
evaluation and should improve parallel building.
X-Gentoo-Bug: 289264
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-31 14:05:57 -06:00
William Hubbs
c2529c1ed6
only support building with GNU Make
...
Update the documentation to state that openrc only works with gnu make.
This needs to be done in order to address the parallel build issue.
X-Gentoo-Bug: 289264
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-31 14:03:45 -06:00
William Hubbs
fa1fefb2bc
add option to disable setting the system clock on boot for linux systems
...
This commit adds the clock_hctosys option which is used to skip setting
the system clock on boot and can be used with a modern linux kernel
which has the CONFIG_RTC_HCTOSYS option set to y.
I would like to thank Dimitris Mandalidis for the report and for the
patch to baselayout-1 on which my changes to openrc are based.
X-Gentoo-Bug: 248131
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-01-24 21:37:51 -06:00
William Hubbs
10ce67886d
change local to run programs
...
This changes the local service so that it will run programs located in
@sysconfdir@/local.d instead of the local_start and local_stop functions
from @sysconfdir@/conf.d/local.
The advantage for the user is that these programs are not part
of the openrc package, so the user does not have to worry about them
being overwritten when openrc is upgraded.
X-Gentoo-Bug: 351465
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
2011-01-20 12:50:29 -06:00
Robin H. Johnson
eebb2d1b9c
test: You need to run "make" before "make check" will work.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-18 01:49:22 +00:00
Robin H. Johnson
e39178de28
docs: make check does not catch textfile trailing whitespace.
2011-01-18 01:48:53 +00:00
Robin H. Johnson
9c5aa8a3f7
Document all deprecated code for future removal.
2011-01-18 01:41:29 +00:00
Robin H. Johnson
80853f5dbc
sh/init: Detect a mounted /proc without sleeping
...
Previously we checked if /proc was alive by reading /proc/uptime twice
with a 1 second sleep between calls, so that it had time to update.
This got a complaint of an entire 1 second delay, so we improve the
check to be much faster without sleep. We cannot continue to use
/proc/uptime as it only has a 10ms resolution.
X-Gentoo-Bug: 348416
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=348416
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-18 01:29:09 +00:00
Mike Frysinger
9ce957c3e7
librc: delete trailing newlines
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 20:05:13 -05:00
Mike Frysinger
c825a74dd1
tests: check for trailing blank newlines
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 20:04:53 -05:00
Robin H. Johnson
69abe1b2e8
Add removal schedule document for code trimming/deprecation.
2011-01-17 22:31:11 +00:00
Robin H. Johnson
164b8e4e04
Document that rc_sys_v{1,2} should not be used outside of OpenRC.
2011-01-17 22:30:40 +00:00
Robin H. Johnson
de8b4855d3
Bug #351570 : Fix hidden functions visibility for rc_deptree_load_file.
2011-01-17 19:36:51 +00:00
Robin H. Johnson
f3f55f1f6d
Build cleanup: librc.funcs.hidden.list is generated by testsuite.
2011-01-17 19:34:09 +00:00
Robin H. Johnson
2b7c2b8cf1
Bug #351570 : Hidden function fixes: rc_conf_value.
...
Refactor rc_conf_value into librc for use in library context.
Also requires moving:
- rc_conf internal static
- Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX
moved to rc.h with new RC_ prefix added.
- Defines: RC_CONF, RC_CONF_OLD moved to rc.h.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-17 19:29:45 +00:00
Mike Frysinger
6e876bca13
tests: check for common style issues
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:49:35 -05:00
Mike Frysinger
faa2df1159
more whitespace cleanup
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:49:12 -05:00
Mike Frysinger
711713d664
start-stop-daemon: use termios.h rather than sys/termios.h
...
POSIX specifies termios.h, not sys/termios.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:48:13 -05:00
Mike Frysinger
8b5e391afb
start a STYLE file
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:23:09 -05:00
Mike Frysinger
1e73fd4b1e
tests: setup env before reading local files
...
The local files we source might use local binaries (like eval_ecolors),
so setup the env first.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:07:24 -05:00
Mike Frysinger
f796269a1d
dist.mk: add a standard "distcheck" target
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-17 04:03:25 -05:00
Robin H. Johnson
b2d0656814
Style fix: "char *foo" not "char* foo".
2011-01-17 08:46:41 +00:00
Robin H. Johnson
c0a3e25d48
Style fix: /* */ comments not // comments.
2011-01-17 08:43:40 +00:00
Robin H. Johnson
0c93f4df32
Style fix: "while (" not "while(".
2011-01-17 08:42:28 +00:00
Robin H. Johnson
b1fcf4ce9c
Style fix: "if (" not "if(".
2011-01-17 08:41:02 +00:00
Robin H. Johnson
6804edfc85
Better error checking of argc for --applet call.
2011-01-17 08:39:44 +00:00
Robin H. Johnson
bfb87f2d51
Use xstrdup for style.
2011-01-17 08:34:03 +00:00
Robin H. Johnson
e6fc30da61
Clean up all trailing whitespace in src/.
2011-01-17 08:28:43 +00:00
Robin H. Johnson
49339525a9
Bug #351712 : Implement --applet selection mode for SELinux wrappers.
...
In addition to detecting what multicall applet we want via argv[0],
provide an explicit override mode with a --applet initial argument.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-17 07:37:43 +00:00
Robin H. Johnson
1f578cdbad
Add TODO item.
2011-01-17 06:59:37 +00:00
Robin H. Johnson
b00ad439a6
Add new option -F to rc-depend tool, so that we can debug user deptree files easily.
2011-01-17 06:53:50 +00:00
Robin H. Johnson
0e90ae266a
Factor out new function rc_deptree_load_file to aid in debugging deptree files from users. Loads from a given filename instead of the hardcoded RC_DEPTREE_CACHE define.
2011-01-17 06:32:46 +00:00
Robin H. Johnson
b113ad49e9
Bug #351783 : more documentation for rc_sys. But really see the OpenRC migration guide where this is covered.
2011-01-16 22:48:10 +00:00
Nathan Phillip Brink
a534b623b9
bug #351622 : Use CFLAGS during linking.
...
Fix compilation on portage-multilib.
2011-01-14 16:40:58 -06:00
William Hubbs
882a4b7d69
bug 351523: fix deprecation date for rc_sys
...
The deprecation notice for automatic detection of the system type stated
that the automatic detection will be removed no later than 2010/03/01,
but it should state 2011/03/01.
2011-01-13 10:37:45 -06:00
William Hubbs
ac8b4be7c2
release openrc-0.7.0
2011-01-12 20:14:17 -06:00
Eray Aslan
66abbefd6c
bug 351160: make openrc exit codes LSB compliant
...
* status on a stopped service now has a return code of 3 (was 1)
* starting an already started service now has a return code of 0 (was 1)
* stopping an already stopped service now has a return code of 0 (was 1)
2011-01-12 19:46:11 -06:00
William Hubbs
84eda608c8
bug 328675: add error checking to runscript.sh
...
runscript.sh needs to abort if the . command used to load
conf.d files and the service script does not execute successfully.
I would like to thank Mike Frysinger for his input wrt style on this
patch.
2011-01-12 19:21:48 -06:00
Mike Frysinger
e3905ed7bb
update bug reporting information
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-01-08 18:35:08 -05:00
Chris Richards
92b6262ac7
Bug 349571 - SELinux fixes for bootmisc
...
- delete the contents of the $RC_LIBEXECDIR/console directory but not
the directory itself.
- direct error output from the chmod call for /tmp to /dev/null.
2011-01-06 18:20:53 -06:00
Robin H. Johnson
647df8cfe7
Make sure old rc_sys code never runs if the rc_sys variable exists.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-05 22:33:03 -08:00
Robin H. Johnson
6a0812645a
Update manpage for mention of rc_sys purpose.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-05 22:27:35 -08:00
Robin H. Johnson
3d4d1ab14b
Remove broken automatic LXC subsystem detection.
...
Any system using cgroups was being detected as an LXC system. This was
triggering on OpenVZ under RHEL6 as well as the "automated per tty task
groups" as discussed on the LKML.
All LXC users should now switch to the new rc_sys variable introduced in
the previous patch.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-05 22:09:34 -08:00
Robin H. Johnson
09f990a7c8
Implement explicit selection of subsystem types.
...
- Fixes bugs #347583 , #349389 , both of which were triggered by cgroups
being detected as the LXC subsystem type.
- Makes it much easier to select "prefix" type.
- "rc -S" will now print a warning if you have not configured rc_sys in
/etc/rc.conf
- All other semantics of rc_sys are unchanged in this patch.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2011-01-05 22:09:34 -08:00
Robin H. Johnson
6df531d33d
Document the order of the services within rc-status output.
2011-01-05 22:09:33 -08:00
William Hubbs
b2e9b91852
bug #349443 : remove -openvz keyword from sysctl service
...
Openvz supports sysctl settings which are different from the host
settings, so allow the sysctl service to run for openvz systems.
2010-12-28 13:54:19 -06:00
Robin H. Johnson
f84d997d4c
Move the ip rule extra output to verbose mode only, and support verbose output on addresses and routes.
2010-12-15 13:02:04 -08:00
Robin H. Johnson
346148ceb8
Fix pointopoint->peer for iproute.
2010-12-15 12:40:21 -08:00
Robin H. Johnson
12a91636f4
Fix pointopoint typo in old ifconfig setup.
2010-12-15 12:37:50 -08:00
Robin H. Johnson
7f7baa6c3c
Bug #266659 : we really need to allow peer, pointtopoint in parsing config lines.
2010-12-11 18:29:34 -08:00
Robin H. Johnson
400b45d590
Final documentation cleanup for updated bridge code.
...
Specifically document how to handle the case of explicitly starting a
bridge and then dynamically adding interfaces to it.
brctl_br0=''
bridge_add_eth0='br0'
2010-12-12 00:58:47 +00:00
Robin H. Johnson
e431599d08
Add "after lvm modules" as Flameeyes reports that LVM is starting too late on his system in some cases.
2010-12-11 14:25:46 -08:00
Robin H. Johnson
e07f0ef417
Merge support for Routing Policy Database (RPDB)
...
This can be used for multi-homed connections and other advanced routing
in Linux. See the documentation links for more information about doing
this in linux.
The code was a originally pure addon into the conf.d/net files, written
in mid-2004 for doing multi-homing between two internet connections. I
have finally cleaned this up and integrated it. Thanks to Jonathan Kwan
for giving me the original impetus to develop this for Gentoo (it was
his dual internet connections...).
In the intervening years, it was a example of postup/postdown in the
net.example file, however that suffered from a few corner case issues.
If you were using the code from net.example, please see the updated
section 'Advanced Routing' on syntax, and drop your old function blocks.
Additionally, note that the rules added are now directly saved for
removal when the interface is taken down.
2010-12-11 14:23:52 -08:00
Robin H. Johnson
dbb5af2023
Revamp of bridging code.
...
- Use sysfs to read bridge information from the system instead of
parsing the brctl outputs.
- Allow setting of all bridge configuration parameters using new sysfs
methods, modelled after bonding configuration. Also works for per-port
bridge interface parameters.
- Document pre-starting an empty bridge for dynamic add.
- Check for interface existence before adding to bridge.
- Should fix bug #293046 , #309185 .
2010-12-11 12:26:38 -08:00
William Hubbs
900d54b0fc
release openrc-0.6.8
2010-12-07 22:32:44 -06:00
William Hubbs
84750f5722
bug 232347: fix netmount to respect _netdev option
...
The _netdev option in fstab on linux systems indicates
that a filesystem should only be mounted if the network is available.
This commit fixes netmount to support this.
2010-12-07 11:54:03 -06:00
Robin H. Johnson
f8f03bdbbf
Bug #345281 : If wpa_supplicant is built w/ USE=dbus, we need to start after DBus is up.
2010-12-06 02:54:21 +00:00
Robin Johnson
80d5f7d27b
fix selinux context for rc-svcdir (bug #347503 )
2010-12-03 23:49:34 -06:00
William Hubbs
449080e145
release openrc-0.6.7
2010-12-03 14:51:30 -06:00
Thomas Pfaff
062223a5df
Avoid race condition in runscript (bug #319865 )
...
Under normal conditions, runscript creates one child and waits for its
termination, which is signaled by a pipe write from the SIGCHLD
sighandler.
When running killprocs however more than one SIGHCLD signal is generated, at
least on all of my amd64 boxes running on real hardware and in vmware.
When the first SIGCHLD occurs svc_exec leaves the loop and closes the pipe.
Subsequent SIGCHLDs during the close can lead to a race condition and create an
EBADF error in the pipe write (pipe is closed but the file handle is still !=
-1).
We avoid this by blocking SIGHCHLD during the pipe close.
2010-12-03 14:01:28 -06:00
William Hubbs
18064e19f6
release openrc-0.6.6
2010-11-30 16:04:17 -06:00
William Hubbs
cdf07b5970
localmount should only use the -O option for linux systems
...
This fixes bug #347307 .
2010-11-30 15:40:44 -06:00
William Hubbs
82b265016a
send error output from chattr command to /dev/null
...
This is for bug #346659 .
2010-11-26 14:54:30 -06:00
William Hubbs
bdfab242b7
release openrc-0.6.5
2010-11-21 11:08:53 -06:00
William Hubbs
4ca32808dd
Revert "allow ifplugd to work on wireless interfaces"
...
This reverts commit 4ea75dd1d6 .
This caused a regression, see bug #345795 .
Ifplugd is only designed to support wireless interfaces that use the
older wireless extentions.
2010-11-18 15:06:42 -06:00
William Hubbs
9e5b9abf40
remove "use hostname" from sysctl for bsd systems
2010-11-16 10:03:05 -06:00
William Hubbs
ac37dc2764
do not mount local file systems with the _netdev option in fstab
...
This fixes #344947 .
2010-11-15 12:01:48 -06:00
William Hubbs
9285cb3392
release openrc-0.6.4
2010-11-15 10:17:17 -06:00
William Hubbs
6d9137d6c4
remove support for local.start and local.stop for bug #343709
...
The openrc ebuild now migrates these files to /etc/conf.d/local, so we
do not need to support them.
2010-11-10 10:55:28 -06:00
William Hubbs
2fa6bb0d48
add warnings about local.start and local.stop for bug #343709
...
We need to warn users that they should be using /etc/conf.d/local
instead of /etc/conf.d/local.start and /etc/conf.d/local.stop. This adds
those warnings.
2010-11-05 13:42:33 -05:00
William Hubbs
39776d6fb7
update documentation for rc_interactive
...
rc_interactive is automatically disabled if rc_parallel is set to YES.
Update the documentation in rc.conf to reflect this.
This fixes bug #327305 .
2010-11-01 13:57:22 -05:00
Jory A. Pratt
68c021c424
ensure bonding interface is down before we attempt to configure, also
...
mode has to be configure before any other arguements are passed. Thanks
Ed Wildgoose <gentoo@wildgooses.com > for patch.
2010-10-31 16:40:54 -05:00
Diego Elio Pettenò
09bed967bf
Allow cleaning up of pam_mktemp-based temporary directories.
...
This was blacklisted before, so the .private directories never had their
content cleaned up, even if WIPE_TMP was set to yes.
2010-10-31 16:18:38 -05:00
Jory A. Pratt
060b19e3e3
correction for unmounting volumes with weird characters, thanks Brant
...
Gurganus <brant@gurganus.name >
2010-10-28 20:35:09 -05:00
William Hubbs
d8a76d1bf6
allow net_fs_list to be extended but not replaced
...
This fixes bug #342825 .
2010-10-27 09:00:02 -05:00
Jory A. Pratt
7653ef89b8
remove 'use hostname' bug 340991, Thanks Diego
2010-10-23 23:52:43 -05:00
Jory A. Pratt
be6c0716ee
surpress output of loadkeys, fix setfont path check
2010-09-30 07:33:52 -05:00
William Hubbs
4ea75dd1d6
allow ifplugd to work on wireless interfaces
...
this fixes bug #335494 .
2010-09-14 19:37:52 -05:00
William Hubbs
b708852784
release openrc-0.6.3
2010-09-02 10:15:17 -05:00
William Hubbs
f700243016
Revert "fix bug 266395"
...
This reverts commit 1a188f8f72 .
This revert fixes bug #334663 .
2010-09-02 09:42:11 -05:00
Jory A. Pratt
b232e529f1
Fix for make-3.82 breakage.
2010-08-22 15:05:11 -05:00
William Hubbs
ae3186834f
release openrc-0.6.2
2010-08-19 17:00:38 -05:00
William Hubbs
23546e27d9
fix detection of renamed vlan interfaces
...
This fixes bug 327059, thanks to Jonathan for reporting this and for the patch.
2010-08-19 16:17:38 -05:00
William Hubbs
1a188f8f72
fix bug 266395
...
Do not stop wpa_supplicant or wpa_cli if they are in the background.
Thanks to Slava Gorbunov for the patch.
2010-08-18 15:01:23 -05:00
Anthony G. Basile
89829f6d7c
Fixes bug #332383 . Thanks Lutz Heermann.
2010-08-13 17:42:23 -04:00
Anthony G. Basile
6e3b3bfc53
Fix bug #332181 . Thanks Lutz Heermann.
2010-08-13 17:32:31 -04:00
Jory A. Pratt
14c95ae9a6
update consolefont/keymap to include -lxc in keywords
2010-08-10 08:21:08 -05:00
William Hubbs
d3ccbdb5a9
allow ip to be in /sbin or /bin
...
This makes it possible for the "ip" program in iproute2 to be installed
in /sbin or /bin.
2010-08-09 20:01:15 -05:00
William Hubbs
1cdf85e1ce
fix bug #330173
...
This fixes a typo in the comments in net.example.
2010-07-28 13:18:33 -05:00
Jory A. Pratt
2982cfab70
Fix bug #301237 , update example to list proper package for mii-tool
2010-07-12 22:45:40 -05:00
Jory A. Pratt
761fe99fe2
on_ac_power needs to exit not return bug #322037
2010-07-12 22:19:56 -05:00
William Hubbs
6f24d1cbd8
fix typo
...
I made a typo while manually transferring over Roy's last commit. This
fixes that typo.
2010-07-10 15:31:16 -05:00
William Hubbs
898552dcc3
fix metric
...
This change was also taken from Roy Marples' git.
2010-07-07 19:55:37 -05:00
William Hubbs
6850566be0
remove extra route
...
This was taken from Roy Marples' git repository.
2010-07-07 19:42:56 -05:00
Mike Frysinger
3036b44798
restore init.d pause option
2010-04-09 02:19:40 -04:00
Mike Frysinger
acc0edb040
restore old e* func output
...
Gentoo has always used the sytle:
* moo ... [ ok ]
Latest openrc now does:
* moo... [ok]
Realistically, 4 spaces out of 80 on reduced terminals doesn't make any
sort of realistic difference and it's been just fine for the last 10
years, so keep the default behavior.
2010-04-09 02:19:40 -04:00
Seth Robertson
316a316d9b
Allow dhclient per $IFACE arguments.
2010-03-30 09:21:54 +01:00
Michal Gorny
20b4076b12
Support sysfs.
...
Fixes #214
2010-03-27 08:53:04 +00:00
Roy Marples
4d86d34635
Fix -s and -S.
2010-03-26 22:10:03 +00:00
Roy Marples
ae7a92ae7b
Try and describe bonding errors a bit more.
2010-03-24 20:41:18 +00:00
Roy Marples
67b538fd26
Fix tentative ip addresses
2010-03-24 20:25:42 +00:00
Roy Marples
0276c4f516
Release openrc-0.6.1
2010-03-22 20:02:12 +00:00
Roy Marples
7271449a0c
Fix two leaks.
2010-03-17 20:37:47 +00:00
Roy Marples
4b333eaf36
Send SIGKILL after 2 failed SIGTERM when unmounting.
2010-03-16 21:34:48 +00:00
Juan RP
59b08643f1
Mount xenfs early so OpenRC can detect it.
2010-02-26 09:34:43 +00:00
Roy Marples
5c52e5beb5
Fix rc_${rc_svcname}_need.
...
Display config depends in service depend function also.
2010-02-20 21:48:06 +00:00
Trevor Summers Smith
c0f5f2122c
Allow bridge interfaces to be called bridge.
2010-02-09 17:10:04 +00:00
Mike Frysinger
ecf9ef49a7
random spelling fixes
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-01-08 22:02:51 +00:00
Roy Marples
bb45f0eabc
Fix BSD compile.
2010-01-08 00:22:04 +00:00
Daniel Mierswa
f434c902a5
Use IFACE variable instead of iface.
...
Signed-off-by: Daniel Mierswa <impulze@impulze.org >
2009-12-31 07:21:59 +00:00
Roy Marples
5ec2efaff2
Release openrc-0.6.0
2009-12-21 15:30:17 +00:00
Christopher Head
9ca65be42e
Fix comments.
2009-12-21 09:45:03 +00:00
Roy Marples
a704b97fd2
Remove non working bash sequence expansion examples.
2009-12-21 09:18:00 +00:00
William Hubbs
2c0a71172d
default route commands on Linux now require gw or via (iproute2).
2009-12-19 08:03:35 +00:00
William Hubbs
cbafcd078d
add example for defaultiproute6
2009-12-19 07:56:39 +00:00
Roy Marples
a165fbe384
Support inet6 routes.
2009-12-14 19:31:18 +00:00
Roy Marples
02c12c1cac
Allow "dev eth0" to work for a default route.
2009-12-14 19:01:03 +00:00
Roy Marples
084f5e12eb
Fix restart with iproute2
2009-12-14 14:21:30 +00:00
Roy Marples
3b9eaea8ec
Don't add broadcast addresss to ipv6
2009-12-14 10:14:39 +00:00
Roy Marples
dc3ccd8101
start-stop-daemon can now set process IO scheduling.
2009-12-14 08:47:48 +00:00
Roy Marples
9476a2e721
Typo
2009-12-11 09:26:43 +00:00
Roy Marples
1d174cc60c
Move on_ac_power to a shell script.
...
Fixes #204
2009-12-10 22:30:56 +00:00
William Hubbs
12af86395f
Allow ip to add the default route.
...
Fixes #211 .
2009-12-10 22:08:51 +00:00
Olivier Huber
5b3e5edda2
Typo
2009-12-10 22:00:14 +00:00
Roy Marples
775d56b877
Document multiple routes, fixes #210 .
2009-12-05 21:23:39 +00:00
Roy Marples
22e2a4f0a1
Add support for iproute2 in staticroute.
...
Fixes #208 .
2009-12-05 20:05:43 +00:00
Alon Bar-Lev
ca752a5a2d
Support phy80211, fixes #209 .
2009-12-05 19:25:39 +00:00
Roy Marples
93cecab1ed
Comment out static routes
2009-12-04 01:38:33 +00:00
Roy Marples
baf3b2dd45
Correct homepage.
2009-12-02 19:12:26 +00:00
Roy Marples
e9e37ad798
Release openrc-0.5.3
2009-12-02 19:08:02 +00:00
Roy Marples
4df8770a90
Only add metric to dhcpcd if not given.
...
Fixes Gentoo #294312
2009-11-25 02:07:22 +00:00
Roy Marples
ec38bbbdda
If mounting tmpfs fails, try ramfs.
...
This is because buggy kernels always report tmpfs even when not present.
2009-11-20 00:04:32 +00:00
Roy Marples
509e34d425
Only allow one service to be provided by default.
...
Fixes Gentoo #293139 .
2009-11-14 08:37:05 +00:00
Roy Marples
0de1d18d41
Fix logic
2009-11-13 22:29:01 +00:00
Roy Marples
89a2d76772
Rework around new kbd-1.15.1, Gentoo #289265 .
2009-11-13 22:21:50 +00:00
Roy Marples
80d4ce3a11
Add a --warn option to just warn when reference file does not exist.
...
Fixes Gentoo #291894 .
2009-11-13 21:31:09 +00:00
Roy Marples
d21177e5c7
Ensure we have a valid broadcast address.
2009-11-11 00:31:32 +00:00
Roy Marples
d29daf3952
fsck only checks battery when requested, which is not by default.
...
This fixes having JFS as the root partition on battery power.
For most modern FS's this is a non op, or a very small op by default
so it should be fine.
Fixes Gentoo #291654 .
2009-11-10 22:50:48 +00:00
Roy Marples
1d9ce8e9a1
Allow sysctl to read confs from /etc/sysctl.d
...
Fixes #203 .
2009-11-10 22:40:35 +00:00
William Hubbs
bb96dc4e01
Fix iproute2 support.
...
Fixes Gentoo #289762 .
2009-11-10 21:19:17 +00:00
Jan Psota
ebb49805fc
Don't punt /var/log/wtmp if it exists, just create if it does not.
...
Fixes Gentoo #289849 .
2009-11-10 20:09:44 +00:00
Nao Nakashima
4a892a23ba
Fix ppp options ordering.
...
Fixes #205 .
2009-11-04 19:40:52 +00:00
Roy Marples
95ee39ab1c
Add support for Linux Containers, fixes #202 .
...
Patch by bug reporter.
2009-11-04 19:21:24 +00:00
Roy Marples
3c8ea5896a
Fix default domain
2009-10-25 00:03:20 +01:00
Roy Marples
7c5047acfc
Release OpenRC-0.5.2
2009-10-17 00:32:40 +01:00
Roy Marples
f2f7d0ae6d
Add README.net to describe the networking goals for OpenRC.
2009-10-17 00:18:39 +01:00
Roy Marples
d27655c908
Add domainname to the network script
2009-10-16 12:04:20 +01:00
Roy Marples
9f4a7afd83
Add staticroute to the boot runlevel
2009-10-16 09:25:08 +01:00
Roy Marples
ac6808a73e
Regenerate version.h if necessary
2009-10-16 08:13:34 +01:00
Roy Marples
baeb59cd2e
Add a new staticroute init script so that .... static routes can be configured!
...
Fixes Gentoo #288421 .
2009-10-16 08:08:22 +01:00
Roy Marples
a4b03ead79
Add lustre
2009-10-15 23:48:40 +01:00
William Hubbs
c96a015742
fix wait time for gentoo bug 288495
...
The wait time was in seconds. This patch converts it to milliseconds.
2009-10-15 20:25:01 +01:00
Roy Marples
fdca530d4f
Address iproute2 mtu.
2009-10-15 20:20:36 +01:00
Roy Marples
da08e3822f
Ensure ip brings interface up when adding addresses.
...
Fixes Gentoo #288889
2009-10-15 20:17:51 +01:00
Roy Marples
ac7af85813
Provide clock
2009-10-13 21:06:35 +01:00
Roy Marples
a8f6a9b654
Add new utility and init script swclock that sets the system time based on
...
the mtime of a file. It saves the shutdown time to this file also.
This is handy for systems without a working RTC chip.
Based on an idea by Michael A. Smith <michael@smith-li.com >.
Fixes Gentoo #272073 .
2009-10-13 08:03:45 +01:00
Semen Maryasin
aaa0498bf8
EeePC 901 has /proc/acpi/ac_adapter/AC0, so check all AC entries.
2009-10-12 08:21:50 +01:00
Roy Marples
0ffe5caf18
Add more net fs's, Gentoo #284327 .
2009-10-11 08:18:35 +01:00
Roy Marples
5e8e38b9cf
Improve comments, Gentoo #282243 .
2009-10-11 08:15:10 +01:00
Roy Marples
454bd460c4
Multihomed rules show not be applied to the interface, Gentoo #273303 .
2009-10-11 08:03:30 +01:00
Roy Marples
a7fabeef95
Release OpenRC-0.5.1
2009-10-08 21:27:30 +01:00
Roy Marples
07f9be7b1c
Add pkg-config support, fixes #187 .
2009-10-08 00:20:43 +01:00
Roy Marples
42ca23b878
Don't quote opts
2009-09-21 19:05:47 +01:00
Roy Marples
3dc712e222
Allow init scripts to show their dependencies easier
2009-09-04 16:00:08 +01:00
Roy Marples
44585fea46
Add -P to start-stop-daemon to display a . for each second elapsed.
...
Fixes #197 .
2009-09-04 15:41:08 +01:00
Roy Marples
6e485bde39
Really fix --signal 0
2009-09-04 13:32:59 +01:00
Roy Marples
2ea1df634e
Fix signed error.
2009-09-04 13:24:26 +01:00
Roy Marples
807e5d7250
Timeout for ipv6 addresses being tentative.
2009-09-04 13:23:40 +01:00
Roy Marples
7012630302
Allow any valid numeric signal and not just what we define.
2009-09-01 13:57:45 +01:00
Roy Marples
51907c7368
If there is an error setting the font, abort instead of trying to set
...
the font for subsequent consoles.
2009-08-19 16:49:35 +01:00
Roy Marples
8da7a49d02
Fix example
2009-08-17 21:45:11 +01:00
Roy Marples
29949a5496
If mtab is write only and a symlink then assume it's linked to /proc/mounts
...
and don't try and update it. Fixes #185 .
2009-07-20 19:47:08 +01:00
Roy Marples
7fbb6ad427
Don't provide ourself, fixes #190
2009-07-20 19:42:15 +01:00
Roy Marples
08b5664668
Only delete /etc/nologin if we can write to it
2009-07-09 13:32:27 +01:00
Roy Marples
7962218dd8
Apply MTU and txqueuelen after creating the tunnel.
2009-07-08 22:38:48 +01:00
Roy Marples
889b317ac6
Fix wpa_supplicant to find wireless interfaces on newer kernels.
...
Fixes #176 .
2009-07-01 00:24:08 +01:00
Roy Marples
9907c90552
Host should configure urandom.
...
Fixes #179 .
2009-07-01 00:13:25 +01:00
Roy Marples
b4104957b1
We should use -feature instead of nofeature.
...
This matches the ifconfig and Gentoo USE flag syntax and is hopefully
easier to read.
Fixes #178 .
2009-07-01 00:07:32 +01:00
Roy Marples
6abeec7430
Use rc_getline instead of assuming a fixed kernel cmdline length.
...
This is now requires as COMMAND_LINE_SIZE isn't exposed by kernel
headers anymore.
Fixes #177 .
2009-06-21 12:20:53 +01:00
Roy Marples
fbb78022f9
Ensure that tmp dirs are +rw as well as +t.
2009-06-13 21:12:50 +01:00
Natanael Copa
79b24f5b79
hwclock now sends help to stderr.
2009-06-12 23:11:16 +01:00
Roy Marples
fc6cdefedb
Linux FHS requires /var/lib/misc
...
Stop fuser from being chatty
2009-06-08 22:18:39 +01:00
Roy Marples
43f6c2196e
Release openrc-0.5.0
2009-06-05 09:20:11 +01:00
Roy Marples
c568baf8c8
Ignore more foo
2009-06-05 09:20:10 +01:00
Roy Marples
aaced3face
Update copyright
2009-06-05 09:20:10 +01:00
Roy Marples
c3e9a7ec14
Warn about going inactive correctly.
2009-06-01 20:10:42 +01:00
Roy Marples
efec0b5012
nexthop routes don't use metrics
2009-06-01 20:06:56 +01:00
Roy Marples
278e65b24a
Ignore termencoding
2009-05-29 22:09:39 +01:00
Roy Marples
1b3a413673
Skip sysctl errors
2009-05-29 22:08:47 +01:00
Roy Marples
a685e4db0a
Add FreeBSD support for AC power.
2009-05-29 21:33:44 +01:00
Roy Marples
e689f17933
Support NetBSD envstat for working out if on AC power.
2009-05-29 21:19:31 +01:00
Roy Marples
fa9e482a31
If not running on AC power don't run fsck to preserve battery life.
2009-05-29 21:06:59 +01:00
Roy Marples
60134ddec5
Only delete addresses for interfaces that exist.
2009-05-29 15:23:23 +01:00
Roy Marples
83e82c452e
Merge branch 'master' of ssh://roy.marples.name/var/git/openrc
2009-05-29 14:15:12 +01:00
Roy Marples
a518d34549
Ignore more foo
2009-05-28 20:16:35 +01:00
Roy Marples
5acf0e9464
We need to use eval so we can pass "*" as an argument.
2009-05-26 22:36:53 +01:00
Roy Marples
c0fd1b49e4
Move non compiled libraries from /lib/rc to /libexec/rc
...
OpenRC version is now stored as plaintext in /libexec/rc/version
Plugins (cursplash, splashutils) will have to be re-compiled to pickup
the new directories. State data needs to be moved from /lib/rc/init.d
to /libexec/rc/init.d as well.
2009-05-23 20:38:12 +01:00
Roy Marples
5294abe617
If already started or stopped, abort.
2009-05-17 12:29:46 +01:00
Charlie
9c5faf231c
procfs should use modules.
2009-05-11 15:31:52 +01:00
Roy Marples
701813b5ff
procfs should use modules.
2009-05-11 15:31:52 +01:00
Roy Marples
b2eb9f8a83
Unset PAM environment variables if not set
2009-05-07 12:20:59 +01:00
Roy Marples
cc5e43922e
Supply a working default inittab
2009-05-07 10:44:50 +01:00
Roy Marples
0aabe32375
Enable wpa_supplicant for >1 wireless interface if found.
2009-05-06 16:47:37 +01:00
Roy Marples
7c81f74b60
Fix compile on NetBSD
2009-05-05 16:39:59 +01:00
Roy Marples
d441bf1585
Ignore more foo for the BSDs
2009-05-05 10:29:52 +01:00
Roy Marples
43063ae7c2
Fix compile on NetBSD and FreeBSD
2009-05-05 10:24:21 +01:00
Roy Marples
e575b33047
We shouldn't use -L/lib
2009-05-02 18:29:00 +01:00
Roy Marples
c09e6b3e6d
Typo
2009-05-02 12:31:13 +01:00
Roy Marples
6615eb4b68
Add runlevel stacking, #88
...
This implementation has the limitation that you cannot have a stacked
runlevel and service of the same name in a runlevel.
2009-05-02 12:26:45 +01:00
Roy Marples
e040bd77e9
Ignore test results
2009-05-02 12:18:34 +01:00
Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
b32c9c1139
Ensure that rc.d services are not started twice if PKG_DIR is blank.
...
Fixes #170
2009-05-01 09:37:51 +01:00
Roy Marples
fb051bf81a
Add -i, --ifexists so that we can do this
...
rc-sercice -i foo -- restart
instead of this
rc-service -e foo && rc-service foo -- restart
2009-05-01 08:38:57 +01:00
Roy Marples
caf29a6480
Fix git versioning
2009-05-01 00:15:20 +01:00
Roy Marples
f689187966
Add -Z, --dry-run option to show which services we would start/stop
...
without actually doing so.
Fixes #151 .
2009-04-30 23:42:01 +01:00
Roy Marples
3d0e5175d8
Avoid more gcc warning about not checking return values ...
2009-04-30 19:56:43 +01:00
Roy Marples
21e45e895c
Brand with git version instead of svn
2009-04-30 19:16:31 +01:00
Juan RP
a1e40e9beb
Fix parens
2009-04-30 16:45:18 +01:00
Roy Marples
b70501ef45
Go back to git
2009-04-30 15:05:39 +01:00
Roy Marples
e0f0fc8046
Don't start services when their need dependency is broken
2009-04-28 08:29:02 +00:00
Roy Marples
48f477f851
Fix a brain fart
2009-04-27 13:58:26 +00:00
Roy Marples
3d43fb6f22
Although the noshutdown keyword is nice, we shouldn't use it for network or dhcpcd. Instead fake network shutdown so it comes back up correctly at boot and KILL dhcpcd to preserve network.
2009-04-27 13:33:37 +00:00
Roy Marples
824bb3aee3
Allow templates to define a stop signal
2009-04-27 13:32:13 +00:00
Roy Marples
0f70279f89
Set correct prefix
2009-04-27 12:12:42 +00:00
Roy Marples
71062f479a
Add noshutdown to dhcpcd and wpa_supplicant. Tweak for style.
2009-04-27 12:06:54 +00:00
Roy Marples
94b3057571
Add the noshutdown keyword to special case the shutdown.
2009-04-27 12:04:33 +00:00
Roy Marples
338c93733d
Fix the nstop keyword.
2009-04-27 09:06:30 +00:00
Roy Marples
e70a142956
Style.
2009-04-27 07:51:18 +00:00
Roy Marples
eaa32c75c9
Add the nostop keyword so that we don't stop the network init script by default.
2009-04-26 21:16:05 +00:00
Roy Marples
2b866f264f
Stop using needless {} in vars
2009-04-26 21:13:26 +00:00
Roy Marples
59574780da
Document tap interface creation.
2009-04-26 18:53:24 +00:00
Roy Marples
77c8f8abbb
Use /bin/bash or user shell in /etc/passwd if none set before /bin/sh.
2009-04-26 17:57:06 +00:00
Roy Marples
1d48183646
Try and set a keymap as early as possible, #169
2009-04-26 11:19:22 +00:00
Roy Marples
0feddbd815
Use kill for the pid check as it's fast.
2009-04-25 20:44:13 +00:00
Roy Marples
bd6bb932df
Don't report final eends for interfaces as they make no sense.
2009-04-25 18:02:28 +00:00
Roy Marples
f51d8d0b7d
Document interfaces variable useage a bit better.
2009-04-25 13:44:41 +00:00
Roy Marples
42580d67b8
Verbosely report vars correctly.
2009-04-25 11:39:18 +00:00
Roy Marples
c07b384d82
Don't drop to sulogin by default, but make this configurable.
2009-04-24 11:49:55 +00:00
Roy Marples
bd211d534b
We should match the full variable name.
2009-04-24 11:45:48 +00:00
Roy Marples
b0ac71fe2a
Add missing show levels switch.
2009-04-24 10:23:49 +00:00
Roy Marples
9966a902ab
rc-status -c now lists services that have crashed.
...
It returns 0 if there are crashed services, otherwise 1.
This it easy to restart crashed services automatically.
More for #120 .
2009-04-24 10:17:53 +00:00
Roy Marples
e2629b0a3b
Remove .depend before creating it.
2009-04-24 08:33:11 +00:00
Roy Marples
5276b13926
Cast to int
2009-04-24 08:32:44 +00:00
Roy Marples
e7b35a8f15
Allow rc to start (optionally stop) crashed services, #120
2009-04-24 07:03:08 +00:00
Roy Marples
e643a7fdd5
Describe interval units
2009-04-24 06:37:29 +00:00
Roy Marples
ade85d4bd8
Improve style for KNF
2009-04-23 21:31:22 +00:00
Roy Marples
6953474655
Style
2009-04-23 20:53:24 +00:00
Roy Marples
d231a2f0d9
Fix logic, thanks to Maryasin Semen
2009-04-23 20:44:17 +00:00
Roy Marples
7086df5664
Don't include hotplugged services in manual.
2009-04-23 20:27:40 +00:00
Roy Marples
7dc9c39503
Improve the service timeout code and reduce the timeout to 60 seconds.
...
Don't process any dependencies when changing runlevels and called
outside of RC otherwise we can deadlock.
2009-04-23 20:20:17 +00:00
Roy Marples
953b0b7435
Document -i, --interpreted flag.
2009-04-22 10:49:07 +00:00
Roy Marples
f326f688f6
Add the -i, --interpreted option.
...
This enables the code to include the daemons interpreter when matching
process name which fixes bug #164 .
Existing init scripts that rely on the old behaviour will need to be
fixed.
2009-04-22 10:45:01 +00:00
Roy Marples
588c9da0ab
Document DHCP and iwconfig.
2009-04-19 21:45:09 +00:00
Roy Marples
7e9cdbd16e
Document \$int and how to create bridge and vlan interfaces.
2009-04-19 21:35:26 +00:00
Roy Marples
a2856fe192
Use shell_var for shell variables.
2009-04-19 21:10:06 +00:00
Roy Marples
8e5a601087
Style
2009-04-19 21:02:31 +00:00
Roy Marples
a01f9be6f2
We should use $int for compat with NetBSD
2009-04-19 20:59:46 +00:00
Roy Marples
371506be48
Default to not building the old net scripts.
2009-04-19 20:54:11 +00:00
Roy Marples
4febf00c06
Allow family on routes, #152
2009-04-19 20:05:40 +00:00
Roy Marples
73f6d1c39e
Document defaultroute
2009-04-19 18:36:06 +00:00
Roy Marples
ee53e6ad29
-w, --wait seconds
...
New option so you can set the number of seconds to wait for and
check the daemon is still running.
The old code that periodically polled wasn't that reliable - in this
case simpler == better.
Fixes #160
2009-04-19 18:20:49 +00:00
Roy Marples
e2942e34af
Use a bashism for a minor speedup in gendepends.sh
2009-04-19 16:47:09 +00:00
Roy Marples
bbd810425b
Move special umount of tmpfs to the swap init script where it belongs, #149 .
2009-04-19 11:15:37 +00:00
Roy Marples
bb6614f4e1
Document rc_nostop, #118
2009-04-19 10:25:38 +00:00
Roy Marples
170547010f
Pull /etc/ifconfig.eth0 into interfaces
...
Reverse list of interfaces when stopping
Improve build for conf.d/network
2009-04-19 08:52:00 +00:00
Roy Marples
3579663173
Don't leak the lock fd.
2009-04-18 19:54:04 +00:00
Roy Marples
802fe9709e
Allow user to provide custom status function and still hook into the system one
2009-04-18 10:39:53 +00:00
Roy Marples
657cb3a6eb
Fix compile on FreeBSD.
2009-04-18 00:57:17 +00:00
Roy Marples
9225c6cefb
Not all systems have the utmp group
2009-04-18 00:56:48 +00:00
Roy Marples
1a2d81751d
Support BSDs
2009-04-18 00:56:26 +00:00
Roy Marples
c9e24a0494
Move status to runscript.sh so init scripts can override it, #159
...
Return 32 if crashed, #163
2009-04-18 00:09:03 +00:00
Roy Marples
d4c71415a9
Add MKOLDNET=yes/no toggle
2009-04-17 23:23:31 +00:00
Roy Marples
ee54bb9372
Using fifos for locking can be error prone.
...
flocks are safer, as we only use tmpfs for our lock files.
I don't know how this works for inactive just yet though ...
2009-04-17 22:55:11 +00:00
Roy Marples
7138c1532c
Typo, thanks to Matthias Schwarzott, #166 .
2009-04-17 09:48:34 +00:00
Roy Marples
6027b0ed7d
Add a new init script - network
...
This simply assigns static addresses and an optional default route.
It's possible to add external commands as well, so to create a bonded interface.
Hopefully we can add a few examples to satisfy most of the old net.lo, which
is no longer installed into boot by default.
2009-04-16 23:47:23 +00:00
Roy Marples
95d954e7b5
Improve utmp handling
2009-04-16 23:39:37 +00:00
Roy Marples
744a8bbb4a
Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
2009-04-16 23:34:38 +00:00
Roy Marples
ace0b9653b
Avoid needless forking, #165
...
Thanks to Natanael Copa.
2009-04-16 23:23:21 +00:00
Roy Marples
966ecb24da
Add net dependency
2009-04-16 21:02:46 +00:00
Roy Marples
cba9f12715
Simplfy rm matching pattern, thanks to cypherpunks@mailinator.com
2009-04-12 12:59:00 +00:00
Roy Marples
dea9e11a69
When logging, stdout isn't always a tty, which is the case for VPS
...
systems, Thanks to mwrobel - fixes #106 .
2009-04-02 23:55:19 +00:00
Roy Marples
0b12faed7f
We should abort boot on some errors.
2009-03-16 21:41:23 +00:00
Roy Marples
34fbf3db2f
Add scripts for dhcpcd and wpa_supplicant.
2009-03-05 20:41:07 +00:00
Roy Marples
132dfd7b1e
Typo, thanks to Polynomial-C
2009-03-05 00:41:44 +00:00
Roy Marples
077b2d3ba8
Report if service is not executable.
2009-02-28 14:12:19 +00:00
Roy Marples
907ca8a89f
Set errno when service does not exist better.
2009-02-28 14:12:03 +00:00
Roy Marples
f38ef00939
Fix unit test.
2009-02-23 10:43:24 +00:00
Roy Marples
66cd081301
Change wipe_tmp_dirs to clean_tmp_dirs so user understands meaning better, #153
2009-02-23 09:36:48 +00:00
Roy Marples
749938d439
Style.
2009-02-23 09:35:57 +00:00
Roy Marples
70d8c5beda
Typo, #150
...
Thanks to betelgeuse
2009-02-13 12:52:29 +00:00
Roy Marples
b60f437b52
Fix the number of terminals to operate on.
...
Thanks to Dimitrios Christidis <chrjim@gmail.com >
2009-02-13 12:24:32 +00:00
Roy Marples
d6d2635c51
root should respect inittab, #148 .
2009-02-12 18:12:57 +00:00
Roy Marples
6cc68e21cf
Fix return value for tests.
2009-02-12 10:43:30 +00:00
Roy Marples
9f3cf59818
hostid does not need root to run
2009-02-11 17:42:14 +00:00
Roy Marples
7a628e1db7
Release 0.4.3
2009-02-11 06:54:58 +00:00
Roy Marples
069590d97f
Fix unmask option, thanks to douglas@openplans.org, #146
2009-02-10 23:11:17 +00:00
Roy Marples
3fc17f5966
Store the file skewed against.
2009-02-10 15:25:28 +00:00
Roy Marples
522ab21fbf
Only create the reboot file if rebooting.
2009-02-10 15:16:25 +00:00
Roy Marples
3d7b56f2e2
Create /reboot if running inside OpenVZ, #138 .
...
This should be fine as vpsreboot should only restart a stopped container.
2009-02-10 15:06:48 +00:00
Roy Marples
6bb44be2a3
We should always mount $RC_SVCDIR unless in a vserver or it's already mounted.
2009-01-29 13:38:15 +00:00
Roy Marples
415fe87d8c
Clean up some compiler warnings.
2009-01-29 13:29:04 +00:00
Roy Marples
4f163f9b9a
Allow wpa_cli_$IFACE to too send args to wpa_cli.
2009-01-21 09:25:34 +00:00
Roy Marples
417a817d25
noinit makes more sense than noinitd
2009-01-18 20:02:50 +00:00
Roy Marples
30a7a3a9bf
Fix locale with svnversion, #140 thanks to Matthias Schwarzott.
2009-01-14 14:32:56 +00:00
Roy Marples
5208a1de29
yes should be YES
2009-01-13 11:04:37 +00:00
Roy Marples
abcc4c5c72
Don't allow SYSVINIT parameters through anymore.
...
RC_REBOOT is now yes when rebooting.
Document the special reboot runlevel.
2009-01-13 11:02:00 +00:00
Roy Marples
fcf1cce549
rc_newer/older_than only report file if time_t is a pointer, so it
...
should take precedence in the argument list.
2009-01-13 09:11:31 +00:00
Roy Marples
3d37005a3d
We now warn about clock skews
...
rc-update -u will force a regen of the dep tree
rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
2009-01-12 23:53:13 +00:00
Roy Marples
2243c01390
Add snapshot and snap targets
2009-01-12 23:12:06 +00:00
Roy Marples
a52472c3c3
Fix ordering, #139 thanks to Matthias.
2009-01-12 10:24:47 +00:00
Roy Marples
f23822e082
Copyright
2009-01-12 10:24:00 +00:00
Roy Marples
8a9a2d5fe9
Use snprintf instead of strlcpy to save on size if not available.
2009-01-12 08:31:03 +00:00
Roy Marples
a33554ab18
Copyright
2009-01-11 17:17:04 +00:00
Roy Marples
baf0ce64f5
Ensure that $HOME and $USER are always set, #139
2009-01-11 17:09:13 +00:00
Roy Marples
26f70a5277
Style
2009-01-10 12:18:00 +00:00
Roy Marples
36c53e7551
Keyword novserver, #137 .
2009-01-06 16:25:33 +00:00
Roy Marples
5ca3345534
Release openrc-0.4.2
2009-01-05 20:16:50 +00:00
Roy Marples
0298e4ffa0
Remove leading and trailing space on the ctrl_interface line.
2009-01-05 09:37:38 +00:00
Roy Marples
a063035b37
Make _SVNVER_SH more readable.
2009-01-02 22:51:47 +00:00
Roy Marples
213cef1739
Fix version for releases.
2009-01-02 16:48:42 +00:00
Roy Marples
386ee57432
Fix compile, #136
2009-01-02 15:11:15 +00:00
Roy Marples
631acff7aa
Document the --chuid option.
2009-01-01 14:32:09 +00:00
Roy Marples
877a328179
dmesg and sysfs won't work in a vserver, #137 thanks to Hollow.
2009-01-01 14:27:29 +00:00
Roy Marples
1efa64cae8
Typo.
2008-12-30 19:08:51 +00:00
Roy Marples
22959c3963
Fix working on zsh
2008-12-30 00:05:17 +00:00
Roy Marples
2464f9e93b
Add parens, #134 thanks to Matthias Schwarzott.
2008-12-29 23:06:22 +00:00
Roy Marples
d91201cb94
Skip all forcefsck checking when stopping, #134 .
2008-12-28 15:25:40 +00:00
Roy Marples
1c5ec9d161
Fake get_bootparam function so that we don't check for kernel options forcefsck when doing an fsck on shutdown.
2008-12-28 14:49:07 +00:00
Roy Marples
f4b8366942
Parse retry schedule correctly, #129 . Thanks to vaeth.
2008-12-28 14:05:33 +00:00
Roy Marples
438665357b
Release 0.4.1
2008-12-23 10:45:16 +00:00
Roy Marples
7ad40abf64
Our error messages don't have full stops at the end
2008-12-23 10:42:25 +00:00
Roy Marples
7e12abe035
Typo.
2008-12-23 10:41:33 +00:00
Roy Marples
4dba5b1ff1
Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131 .
2008-12-23 10:40:27 +00:00
Roy Marples
1ff289e305
Whitespace.
2008-12-23 10:39:45 +00:00
Roy Marples
53e2bec385
We should match on the correct args for stopping daemons when pidfiles
...
are not being used.
2008-12-23 10:15:41 +00:00
Roy Marples
9d9f17aa52
Allow working with the new ctrl_iface=DIR=foo directive.
2008-12-23 10:13:58 +00:00
Roy Marples
803dbbf0c8
Allow rc_runlevel/softlevel to set runlevel from kernel commandline.
2008-12-21 01:15:02 +00:00
Roy Marples
9e5e60f257
Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott.
2008-12-13 22:20:21 +00:00
Roy Marples
6bf0289f33
Warn about stopping sysinit services, thanks to Matthias Schwarzott. Fixes #126 .
2008-12-11 14:50:58 +00:00
Roy Marples
bdb3485b49
Punt redundant dirs from git mirgation.
2008-12-07 08:38:16 +00:00
Roy Marples
eb6daeca43
Fix dist for svn
2008-12-07 07:51:40 +00:00
Roy Marples
10e88090f6
Release 0.4.0
2008-12-07 07:49:24 +00:00
Roy Marples
8cce75925f
Ignore FreeBSD targets.
2008-12-05 09:24:49 +00:00
Roy Marples
e72aeebbcd
make ignore now updates svn:ignore as different OS's have different targets.
2008-12-04 19:21:47 +00:00
Roy Marples
dc712a109e
runlevel override works correctly again.
2008-12-04 17:30:26 +00:00
Roy Marples
1acbfcf5ca
Report invalid runlevels.
2008-12-04 17:17:09 +00:00
Roy Marples
f8210050e5
If we're building from subversion, brand the binary as such.
2008-12-04 13:12:46 +00:00
Roy Marples
38e6c9ba5c
make ignore now configures the sv:ignore property.
2008-12-04 12:38:23 +00:00
Roy Marples
2c98c5326a
Punt .gitignore files.
2008-12-04 12:12:09 +00:00
Roy Marples
57f90a42ba
Include hotplugged services in our start list.
2008-12-01 08:46:50 +00:00
Roy Marples
bde35d03ed
Actally show hotplugged services.
2008-12-01 08:46:25 +00:00
Roy Marples
8b76e1d2e0
Ignore interupts when waiting for processes to finish. Also, style fixes.
2008-11-28 10:48:01 +00:00
Roy Marples
b859710cc8
Style.
2008-11-28 10:47:17 +00:00
Roy Marples
c064393f08
Save screen space.
2008-11-28 10:46:58 +00:00
Roy Marples
e84f71596e
Not needed.
2008-11-27 21:14:52 +00:00
Roy Marples
23e73957a0
Switch from select to poll and improve the no prefixing of eend calls.
2008-11-27 21:14:43 +00:00
Roy Marples
2537a07e10
Switch from select to poll and improve the no prefixing of eend calls.
2008-11-27 21:05:39 +00:00
Roy Marples
5403e70313
Save more screen space by removing the space befor the * for einfo and friends. Also remove the leading space before ... for ebegin.
2008-11-26 10:46:33 +00:00
Roy Marples
fe12134a5b
Don't warn about waiting for services marked as notimeout, Gentoo #247306 .
2008-11-23 18:40:43 +00:00
Roy Marples
1deaa0fae0
Fix lib.
2008-11-13 09:35:00 +00:00
Roy Marples
0cca768b82
Mark the addon code as deprecated.
2008-11-12 19:19:56 +00:00
Roy Marples
df22978de9
Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this.
2008-11-12 16:28:07 +00:00
Roy Marples
fe509db660
Save a needless malloc when re-creating PATH.
2008-11-12 10:55:42 +00:00
Roy Marples
937b1b2abf
Don't set user info unless stated.
2008-11-11 19:47:30 +00:00
Roy Marples
eafbed0366
Fix stopping with a faulty pidfile.
2008-11-10 20:57:03 +00:00
Roy Marples
0786141026
Restore interface_exists, interface_up and interface_exists, #123 .
2008-11-10 12:31:20 +00:00
Roy Marples
90d175ae27
Remove deprecated use of modprobe -l. If we need this functionaltiy back, we need to use something else, like say find.
2008-11-04 17:08:35 +00:00
Roy Marples
a178fd0f32
We should not update mtab here.
2008-11-04 17:07:32 +00:00
Roy Marples
03e8e0cb68
More Typos.
2008-11-04 14:28:51 +00:00
Roy Marples
a3d266e741
Use mount-ro
2008-11-04 11:32:07 +00:00
Roy Marples
42e6a95b1d
Move romount to mount-ro and use the umount -r option as it's more reliable for / --bind mounts, Gentoo #239922 . Thanks to Duncan.
2008-11-04 11:30:15 +00:00
Roy Marples
45044c9239
Typo
2008-11-04 11:28:24 +00:00
Roy Marples
5fc6f21169
Typo
2008-11-04 11:05:30 +00:00
Roy Marples
2cf24fe793
Ignore after dependencies for shutdown when not in the runlevel.
2008-11-04 09:32:21 +00:00
Roy Marples
cc14b55414
Now the linx fsck man page has return codes, I find them different from the BSD's so adjust accordingly.
2008-11-04 07:45:05 +00:00
Roy Marples
33d4fba5be
We start off in sysinit correctly.
2008-11-04 00:21:30 +00:00
Roy Marples
32e17af92f
No need for NULL here.
2008-11-03 23:13:36 +00:00
Roy Marples
77d56f5489
Avoid depends not in the runlevel for sysinit and shutdown.
2008-11-03 23:13:12 +00:00
Roy Marples
c520d4a23a
--nice is -N, not -n. Also, correct default timeout.
2008-11-03 21:11:29 +00:00
Roy Marples
8a76c27325
Fix sending signals, #121 .
2008-11-03 21:06:45 +00:00
Roy Marples
7467440a29
Fix fstabinfo for mounting /dev/shm, Gentoo #245367 .
2008-11-03 18:00:55 +00:00
Roy Marples
282ad4bae6
Add descriptions.
2008-11-03 16:16:12 +00:00
Roy Marples
1e5a6f40e5
We shouldn't run halt.sh anymore.
2008-11-03 16:11:29 +00:00
Roy Marples
0af7d5bc20
Add a new shutdown runlevel, Gentoo #224537 .
...
Split halt.sh into halt, killprocs, romount and savecache services.
The reboot runlevel is removed but mapped to shutdown.
The halt script should be moved to the sysvinit package.
2008-11-03 15:31:01 +00:00
Roy Marples
895c4f4149
Plug a leak and expand exec also.
2008-10-30 17:57:58 +00:00
Roy Marples
20380d3144
Allow ~ and ~user to expand for chdir and chroot.
2008-10-30 17:40:48 +00:00
Roy Marples
e1341e372b
Fix --name when stopping, Gentoo #243088 .
2008-10-30 16:26:05 +00:00
Roy Marples
1c73f2967c
We no longer hotplug by default.
2008-10-30 15:03:12 +00:00
Roy Marples
2ff0838abb
We should show hotplugged services, needed services and manually started services in rc-status.
2008-10-30 14:59:14 +00:00
Roy Marples
53ddd6ca96
Properly set PAM enviornment variables after opening session.
...
Without this change, modules like pam_mktemp or pam_env and similar
will be unable to change users' environments, like they are supposed
to.
2008-10-29 21:35:45 +00:00
Roy Marples
9ec6ff02bb
Style and typo.
2008-10-28 15:43:36 +00:00
Roy Marples
aa991a3c99
Style.
2008-10-27 18:38:56 +00:00
Roy Marples
0d98d56188
Remove sysvinit specific code.
...
The runlevels shutdown, reboot, sysinit and single should be called by
init(8) and shutdown(8) and not manually.
sysvinit users will have to add sulogin to their inittab to secure the
console.
2008-10-27 18:01:03 +00:00
Roy Marples
ae692e294e
Don't quote $tunnel, Gentoo #218123 .
2008-10-26 19:58:57 +00:00
Roy Marples
f6e3c167ae
Remove bash localisation feature, Gentoo #244444 thanks to Andrey Grozin.
2008-10-26 19:19:19 +00:00
Mike Frysinger
1d96620b84
hwclock: skip rtc checks if kernel lacks module support
...
Since we only use the result of the device scan to load modules, there is
no point in doing the scan if the kernel doesn't support modules in the
first place.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2008-10-26 07:09:02 +00:00
Roy Marples
d12bb5cf3c
Really fix .depend
2008-10-20 16:47:56 +00:00
Roy Marples
9c76b077d6
Enable use of .depend on gmake. Also, generate extra dependencies for our shared libraries.
2008-10-20 12:09:14 +00:00
Roy Marples
0a39145a5e
Include sysinit services even in single user.
2008-10-16 17:04:44 +00:00
Roy Marples
734e60608a
Ignore new scripts.
2008-10-16 09:41:14 +00:00
Roy Marples
66ae6e38a7
Compile with FreeBSD 6.x make
2008-10-15 09:02:27 +00:00
Roy Marples
8d47d6c022
Fix fuser on BSD platforms.
2008-10-15 08:35:21 +00:00
Roy Marples
c18c74e816
Fix adding just the default route, #119 thanks to pva.
2008-10-14 15:27:52 +00:00
Roy Marples
da94fad3f5
Re-evaluate sys after running initsh.
2008-10-10 14:53:50 +00:00
Roy Marples
10cb4c18df
Remove hardedcoded foo here.
2008-10-10 09:35:13 +00:00
Roy Marples
50b8aba8d9
Remove coldplug and just have hotplug which is a list of allowed/disallowed services. Makes things much easier.
2008-10-10 09:08:59 +00:00
Roy Marples
72dcac8c55
Shorten common messages for prefixed output.
2008-10-10 09:03:59 +00:00
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
247766695c
Fix umounting reporting exit status, Gentoo #239922 .
2008-10-09 16:36:42 +00:00
Roy Marples
1a88a43aa5
Warn about sulogin timeout and then continue as normal, Gentoo #240383
2008-10-09 16:34:21 +00:00
Roy Marples
c4e673edbc
Add a better, but incomplete tgoto implementation to make gcc happy.
2008-10-08 21:07:04 +00:00
Roy Marples
a872fe5590
Fix status check, #239922
2008-10-08 18:32:39 +00:00
Roy Marples
8c8751fa60
Clean up warnings regarding printf.
2008-10-08 15:56:47 +00:00
Roy Marples
5cdc489573
Fix utmp permissions, Gentoo #240437 .
2008-10-08 13:58:17 +00:00
Roy Marples
4d74e94c39
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-10-07 12:18:22 +00:00
Roy Marples
d117b2d644
Fix tests, #Gentoo 240350.
2008-10-07 12:14:53 +00:00
Roy Marples
cb44b0a46c
#ifdef atexit cleanups calling free as the OS should do this for us, but valgrind debuggers need it.
2008-10-06 15:02:32 +00:00
Roy Marples
4e4c4a5bf4
kenv is not always available.
2008-10-03 17:50:30 +00:00
Roy Marples
09a1a5ecd4
Fix a segfault when profile.env does not exist.
2008-10-03 17:50:10 +00:00
Roy Marples
84f6bf4bff
Release 0.3
2008-10-02 16:14:13 +00:00
Roy Marples
5f76c1121a
Clean stale sockets.
2008-10-01 21:12:54 +00:00
Roy Marples
41c1e170d6
Add an env var so plugins know when leaving single means the end, or start the default level.
2008-10-01 08:46:53 +00:00
Roy Marples
f53197818b
Correcly call the right runlevel for plugins when shutting down.
2008-10-01 06:10:34 +00:00
Roy Marples
bb41d2cc80
Use flock to lock PREFIX_LOCK so that multiple processes can cleanly write to the same tty.
2008-09-27 18:50:21 +00:00
Roy Marples
4291b9140e
Warn when waiting for a service every few seconds.
2008-09-27 17:17:15 +00:00
Roy Marples
28d7fb9430
When stopping services, check the newlevel if given otherwise the current runlevel. Fixes #100 .
2008-09-27 16:56:03 +00:00
Roy Marples
abe94bec6f
Load rtc-cmos if needed, Gentoo #235647 thanks to Robin Johnson.
2008-09-27 06:48:21 +00:00
Roy Marples
c3e192a834
Stop ssd from waiting by default - most daemons are good now.
2008-09-26 23:58:57 +00:00
Roy Marples
13d88731b7
We don't check exec when starting, so don't when testing for crashed.
2008-09-22 20:07:14 +00:00
Roy Marples
ffc79a50c2
Style
2008-09-22 19:49:16 +00:00
Roy Marples
6748c0e04e
Allow forcefsck instead of gentoo=forcefsck on the kernel command line.
2008-09-22 12:32:35 +00:00
Roy Marples
27805de20a
Allow forcefsck on the kernel command line, Gentoo #218431
2008-09-22 12:32:11 +00:00
Roy Marples
53693367df
Our match arguments could be different from the exec arguments, as only the kernel should set script arguments.
2008-09-22 12:14:47 +00:00
Roy Marples
554d2fea19
Allow interpreted daemons to detect interperter options.
2008-09-22 10:45:01 +00:00
Roy Marples
a63303971a
Document the --verbose option.
2008-09-22 09:37:28 +00:00
Roy Marples
5610c8560c
s-s-d now handles interpreted daemons more easily.
2008-09-22 09:34:51 +00:00
Roy Marples
2c62d095c8
Typo.
2008-09-21 09:53:48 +00:00
Roy Marples
a72dc1194a
Style.
2008-09-19 11:34:35 +00:00
Roy Marples
dcc4aa131c
Document the limitation of symlinking services outside of the service directory, Gentoo #237263 .
2008-09-19 11:32:24 +00:00
Roy Marples
6b3d8cf598
Fix stopping wpa_supplicant incorrectly, #107
2008-09-19 11:24:21 +00:00
Roy Marples
600d1f62fb
Allow configuration of bond via extra sysfs entries, #105 .
2008-09-19 09:32:24 +00:00
Roy Marples
2de401bca1
Enable bonding via sysfs, #104 thanks to Wolfram Schlich
2008-09-18 22:24:58 +00:00
Roy Marples
e368a4b4f8
Add missing profile bits to env, #72 .
2008-09-18 19:46:10 +00:00
Roy Marples
354fb96ee9
Use the new rc_stringlist_find function.
2008-09-18 15:36:22 +00:00
Roy Marples
312d6f3e57
Work with NULL lists.
2008-09-18 15:32:57 +00:00
Roy Marples
39ea0cb84d
Use the new rc_stringlist_find function.
2008-09-18 15:28:20 +00:00
Roy Marples
17bf78a539
Use the new rc_stringlist_find function.
2008-09-18 15:20:57 +00:00
Roy Marples
072328ff60
rc_nostop now lists services we should not stop on shutdown.
2008-09-18 15:13:53 +00:00
Roy Marples
e0dfa472d1
Add new functions, rc_stringlist_find and rc_stringlist_split.
2008-09-18 15:12:43 +00:00
Roy Marples
ccc24d1086
Add a config file for ipfw, #110
2008-09-18 14:25:23 +00:00
Roy Marples
c4c024fc9d
Allow an empty bridge with no options, Gentoo #237485 .
2008-09-18 14:13:33 +00:00
Roy Marples
223015920c
Warn about parallel still locking the system.
2008-09-18 13:59:05 +00:00
Roy Marples
aa02a5516a
Use better CFLAGS - some new warnings will need to be fixed.
2008-09-18 13:49:58 +00:00
Roy Marples
80a17eb596
Clean up some compile warnings.
2008-09-18 13:09:51 +00:00
Roy Marples
39304745d4
Allow interpreted daemons to use s-s-d a little easier.
2008-09-17 16:56:23 +00:00
Roy Marples
93a3b2dd02
Fix iwconfig parsing on Linux, #111 thanks to Andrew Gaffney.
2008-09-04 14:54:56 +00:00
Roy Marples
00d010fbe0
Work without IP6 kernels, #108
2008-08-29 06:43:54 +00:00
Roy Marples
01de348ede
Add rpc.lockd to netmount.in for BSD
2008-08-27 16:06:01 +00:00
Roy Marples
fabee4dc2d
Actually set the umask.
2008-08-20 10:19:03 +00:00
Roy Marples
1ab1e9328a
Add -k,--umask option, Gentoo #232455 .
2008-08-20 10:02:11 +00:00
Roy Marples
a9f7d2d5e5
Allow dhcpcd to use global dhcpcd variable for commandline options.
2008-08-19 22:30:59 +00:00
Roy Marples
a3c8706618
Allow OpenVZ to mount /sys and device managers, #102
2008-08-19 15:27:15 +00:00
Roy Marples
1f227d62bf
Allow renaming of modules, #103 thanks to Sven.
2008-08-19 15:25:06 +00:00
Roy Marples
cdace75539
OpenVZ can mount NFS shares.
2008-08-19 06:44:47 +00:00
Roy Marples
15678263d5
Add new OpenVZ detection code
2008-08-19 06:36:43 +00:00
Roy Marples
cea206014d
Attempt to make s-s-d simpler by not enforcing the need for a full path and maybe working better with interpreted scripts.
2008-07-27 11:30:49 +00:00
Roy Marples
46a74f244e
Typo
2008-07-24 19:02:28 +00:00
Roy Marples
c67233f15c
Don't set silly defaults that may brake users.
2008-07-09 18:28:45 +00:00
Roy Marples
b15c4758f8
We should unmount / here.
2008-07-09 18:28:14 +00:00
Roy Marples
289889ebf0
Fix unmounting some more.
2008-07-09 17:05:10 +00:00
Roy Marples
7183cb1b18
Fix last commit
2008-07-09 16:20:48 +00:00
Roy Marples
b83108cd2e
Add a knob to avoid the unmounting of some points.
2008-07-09 16:08:38 +00:00
Roy Marples
1ca63447c9
Hide mkdir error's
2008-07-09 15:22:15 +00:00
Roy Marples
c2781c209e
Really test if we can write to RC_LIBDIR or not.
2008-07-09 15:12:56 +00:00
Roy Marples
5983add0f2
No point in re-mounting ro filesystems that are already ro.
2008-07-09 14:24:48 +00:00
Roy Marples
a566493eb8
Ignore core files
2008-07-09 14:04:40 +00:00
Roy Marples
bdd8b150cd
Fix return display.
2008-07-09 13:36:37 +00:00
Roy Marples
53401cd35f
STAILQ -> TAILQ
2008-07-08 10:48: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
157db50df7
Fix is_older_than a little better, and make is_newer_than correct.
2008-07-03 13:30:17 +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
d61f831896
More unit fixes.
2008-07-03 13:09:24 +00:00
Roy Marples
28a65393ca
More unit fixes.
2008-07-03 13:09:10 +00:00
Roy Marples
aa57dd1ff6
More unit fixes.
2008-07-03 12:33:42 +00:00
Roy Marples
e0968a1c2e
Fix test.
2008-07-03 12:20:32 +00:00
Roy Marples
2f5d2855ba
Add an is_older_than unit test, thanks to zzam
2008-07-03 12:07:46 +00:00
Roy Marples
db9bf18587
Fix compile with pcc.
2008-07-02 23:20:04 +00:00
Roy Marples
feac5ea1d5
Ignore ewaitfile.
2008-06-30 13:36:59 +00:00
Roy Marples
64dbae7f61
If filtering fstab, only match additional mounts asked for.
2008-06-30 13:33:42 +00:00
Roy Marples
11e4059b05
Set the default RC_SVCDIR higher up.
2008-06-21 15:31:04 +00:00
Roy Marples
5510451bac
We need to replace @LIB@ here.
2008-06-21 14:10:59 +00:00
Roy Marples
11acce3c7d
Use CPPFLAGS so we work with -combine in CFLAGS.
2008-06-19 23:12:00 +00:00
Roy Marples
4f2bb5ceaf
open should use 3 args when using O_CREAT.
2008-06-17 15:14:33 +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
9b1cb4e246
When we have dependant scheduled services, don't error if a need is stopped.
2008-06-10 15:04:29 +00:00
Roy Marples
2adc99a8f5
No need to include this.
2008-06-05 12:26:53 +00:00
Roy Marples
fc747f9894
Remove the macro ;)
2008-06-05 12:19:49 +00:00
Roy Marples
76063daee5
Update style to more BSDish and replace the big macro with a function.
2008-06-05 12:17:41 +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
ba8008fb05
Include time headers for ewaitfile.
2008-06-04 14:09:25 +00:00
Roy Marples
5e2c3fb5fe
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-06-04 12:58:05 +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
587051ec67
Add the ewaitfile function so init scripts can wait until sockts are created, Gentoo #175783 .
2008-06-03 11:57:15 +00:00
Roy Marples
f2ea7ca514
Let ifdown control all interfaces.
2008-06-03 11:51:36 +00:00
Roy Marples
b41c864fc3
openrc-0.2.5
2008-05-28 13:39:52 +00:00
Roy Marples
c409dd0570
Some ifconfig's output weird inet6 loopback addresses
2008-05-28 13:38:58 +00:00
Roy Marples
aaaa0b50d8
Be quiet when checking at start.
2008-05-27 16:48:47 +00:00
Roy Marples
ca6f289c80
When stopping with a pidfile, only read the pid once incase it vanishes but the process still hangs around.
2008-05-27 16:42:28 +00:00
Roy Marples
f640ecaebb
Only check tentative when we have a carrier, Gentoo #223061
2008-05-27 16:41:53 +00:00
Roy Marples
75eff5a86b
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-05-27 13:08:14 +00:00
Roy Marples
eeadc618fb
Work with madwifi craptastic drivers. Hopefuly prism54 still works.
2008-05-27 13:07:18 +00:00
Roy Marples
bb069e1618
Use iwconfig defaults and config if available.
2008-05-27 10:46:27 +00:00
Roy Marples
3a592fa31b
Trap fsck for SIGINT as well, so user can ctrl-C to abort fsck and continue, Gentoo #223473 .
2008-05-27 10:25:29 +00:00
Roy Marples
6b77cc624f
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-05-27 10:05:15 +00:00
Roy Marples
328215e841
Work with new beta5 options to skip hoof files.
2008-05-25 22:57:44 +00:00
Roy Marples
b03282b901
Fix tunnel, #80 . Someone should fix iproute2 documentation and help files also :P
2008-05-25 22:34:05 +00:00
Roy Marples
08081f7ef4
Fix passno and IFS, #77 and #85 , thanks to Nahor
2008-05-25 22:30:31 +00:00
Roy Marples
8ca8e00a89
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-05-25 22:25:29 +00:00
Roy Marples
1df3ab05b5
realloc -> xrealloc
2008-05-19 13:41:16 +00:00
Roy Marples
775df18a70
Fix a potential segfault, thanks to Fernando J. Pereda.
2008-05-19 13:16:53 +00:00
Roy Marples
148caecc7e
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-05-13 08:41:54 +00:00
Roy Marples
d0f7a63487
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-05-13 08:18:07 +00:00
Roy Marples
b7e598ad91
Install symlinks correctly, thanks to zlin.
2008-05-13 00:03:10 +00:00
Roy Marples
5c114d9430
When testing services to stop, we should trace it. More for #79 .
2008-05-12 23:45:17 +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
a89171ee9b
When stopping, stop services that need our provide as well, #79 .
2008-05-12 23:17:45 +00:00
Roy Marples
6d5d655b52
Style.
2008-05-12 23:00:05 +00:00
Roy Marples
0f51f3e863
We should add devdb to boot.
2008-05-12 15:13:35 +00:00
Roy Marples
be8f8d0ac0
Add the devdb init script.
2008-05-12 15:11:04 +00:00
Roy Marples
d667da8e5c
Check we have a deptree before using it, Gentoo #220579
2008-05-12 13:20:35 +00:00
Roy Marples
9894669742
Fix help text, #75 .
2008-05-12 08:34:42 +00:00
Roy Marples
b732df31ef
Don't report fstab passno of 0 when using greater or less than, #76 .
2008-05-12 08:32:19 +00:00
Roy Marples
762dc3d197
Work with dhcpcd-4 style options.
2008-05-10 12:29:49 +00:00
Roy Marples
30fe99dead
openrc-0.2.4
2008-05-10 12:01:17 +00:00
Roy Marples
2d75eb7976
netmount may use openvpn.
2008-05-10 11:09:52 +00:00
Roy Marples
3663cf1e2a
Only launch single user when RUNLEVEL == S, #74 .
2008-05-10 10:04:34 +00:00
Roy Marples
766ec96e3d
Add ifdown_eth0=NO so that the interface stays up for WakeOnLan, Gentoo #220875
2008-05-09 10:29:06 +00:00
Roy Marples
a854fe6d61
Simplify the wait code.
2008-05-07 09:47:07 +00:00
Roy Marples
619b0b4f37
Fix the EINTR check for waitpid, Gentoo #219929 .
2008-05-06 21:53:21 +00:00
Roy Marples
c8248d05a0
Ensure that make dep ordering is correct for install.
2008-05-06 19:52:30 +00:00
Roy Marples
5ae702339e
We don't need to handle SIGWINCH in sysinit, so this should fix loading a framebuffer module in init.sh (Gentoo #219929 . Ideally someone should tell me why this is happening and if there is a better fix.
2008-05-06 16:21:16 +00:00
Roy Marples
d384502e57
There could be a space between #! and /sbin/runscript, Gentoo #218001 .
2008-05-01 15:18:34 +00:00
Roy Marples
bdaca0baf5
Busybox find now works with -exec correctly, so remove our nasty hack.
2008-04-30 16:44:29 +00:00
Roy Marples
5188fd2592
Wups, test compiles before commiting :)
2008-04-30 16:33:54 +00:00
Roy Marples
5b800030f1
Remove redundant checking of /proc/pid/exe
2008-04-30 16:26:05 +00:00
Roy Marples
208443fa0e
Save a few bytes and make it easier to read.
2008-04-30 15:26:29 +00:00
Roy Marples
a818eebf7b
No need to init this.
2008-04-30 12:26:38 +00:00
Roy Marples
10910876d1
Make the function a little smaller.
2008-04-30 10:55:42 +00:00
Roy Marples
35b4978152
Style
2008-04-30 10:31:06 +00:00
Roy Marples
cedd81801a
We should use correct iproute2 commands and fix busybox as it's iproute2 implementation is a little broken.
2008-04-30 09:18:20 +00:00
Roy Marples
e273b4e08e
Fix another leak.
2008-04-29 11:08:02 +00:00
Roy Marples
50cff8ebc8
Tweak the last commit and fix a valgrind error.
2008-04-29 10:49:50 +00:00
Roy Marples
aec83494d6
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-29 10:26:17 +00:00
Roy Marples
5ba6f0a628
We need to ensure that the init script started is correct, translating symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526 .
2008-04-29 10:25:45 +00:00
Roy Marples
5a59542629
Fix syscons for setting the font correctly.
2008-04-29 08:00:50 +00:00
Roy Marples
52711bdca7
Release openrc-0.2.3
2008-04-28 18:39:51 +00:00
Roy Marples
53902cefb8
Add rc_program function which uses fork and signal masking to try and resolve the waitpid issue, Gentoo #219179 .
2008-04-28 16:04:16 +00:00
Roy Marples
75f991068d
Fix multi platform a little.
2008-04-28 12:48:20 +00:00
Roy Marples
e499e58310
Don't re-start or re-stop failed services if runlevel is changing.
2008-04-27 21:04:37 +00:00
Roy Marples
b08b6cd91b
Always define template start/stop functions so that the real script name isn't hidden when errors are in the real start/stop functions, Gentoo #219179
2008-04-26 19:32:28 +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
1e3442f95d
Work with aliases on NetBSD.
2008-04-23 13:17:13 +00:00
Roy Marples
2bda1871a1
When fsck_passno is set, show this so output is clearer when fsck is multiplexed, Gentoo #218141 .
2008-04-22 13:46:53 +00:00
Roy Marples
d3b111bd58
Our init scripts normally output context in [ .. ]
2008-04-22 08:12:26 +00:00
Roy Marples
dbea63b76d
Fix logic for templates.
2008-04-21 21:34:52 +00:00
Roy Marples
6a5287dbb5
Typo
2008-04-21 19:26:56 +00:00
Roy Marples
df8eeba2fb
Punt is_function in favour of POSIX shell builtin command, thanks to Harald van Dijk for the idea.
2008-04-21 17:32:17 +00:00
Roy Marples
54fce42c6f
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-21 13:07:04 +00:00
Roy Marples
54d7aa39dd
If we don't have permission to inspect the pidfile, don't report crashed. Gentoo #218028 .
2008-04-21 10:56:28 +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
bab5d7767d
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-21 10:26:40 +00:00
Roy Marples
799686e40d
Fix force_preferred, #60 .
2008-04-20 14:24:35 +00:00
Roy Marples
d83ae59cca
Add help for mountargs, #63
2008-04-19 17:19:59 +00:00
Mike Frysinger
18b4108755
add support for parsing newer ifconfig output
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2008-04-19 07:22:30 +00:00
Roy Marples
e96347523f
We should check type output to ensure that we're really calling a shell function and not some badly named binary like stop from boinc, Gentoo #218063 .
2008-04-18 23:00:43 +00:00
Roy Marples
f0aacec02e
Cast to unsigned char for ctype calls.
2008-04-17 10:19:58 +00:00
Roy Marples
57e1dd7389
Fix rc-status some more.
2008-04-17 00:25:08 +00:00
Roy Marples
c89b3763fb
Respect shutdown -F on Linux to force fsck, #59
2008-04-17 00:09:34 +00:00
Roy Marples
425abe40c5
Only report unassigned services when there are any, Gentoo #218005 .
2008-04-16 19:47:19 +00:00
Roy Marples
725b9dc89c
Use qlen instead of txqueuelen so we work with busybox iproute2, Gentoo #217948
2008-04-16 15:23:57 +00:00
Roy Marples
22d650c450
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-16 15:02:19 +00:00
Roy Marples
809ac86c69
We should only check dependencies in files.
2008-04-16 15:01:52 +00:00
Roy Marples
b3310e8e10
Fix rebooting for OpenVZ systems.
2008-04-15 21:50:08 +00:00
Roy Marples
29369c44c1
Add help text for rc-service --resole.
2008-04-15 16:16:59 +00:00
Roy Marples
292fe3a568
Release 0.2.2
2008-04-15 16:09:02 +00:00
Roy Marples
99d5046a56
Don't assume that we have a list returned.
2008-04-10 08:49:05 +00:00
Roy Marples
0e38dcc4d2
By default, rc-status now shows the statuses of the services in the current runlevel and any unassigned non stopped services, #52 .
2008-04-09 22:56:32 +00:00
Roy Marples
9176b77c23
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-09 19:02:41 +00:00
Roy Marples
fad61a7c4b
Fix windowkeys.
2008-04-09 12:24:34 +00:00
Roy Marples
0e114abf5d
Respect shutdown's fastboot.
2008-04-09 00:21:49 +00:00
Roy Marples
bc369085c7
More ltsp fixes.
2008-04-09 00:06:50 +00:00
Roy Marples
6d8b36e09d
Fix netmout for nfs
2008-04-08 23:25:48 +00:00
Roy Marples
8759735711
Give an error when running zap as a generic user.
2008-04-08 22:57:42 +00:00
Roy Marples
034b9b7a12
Add a silly rc_runlevel function to appease SpanKY :)
2008-04-08 16:01:40 +00:00
Roy Marples
e82435c2f4
rc_runlevel is now the preferred kernel commandline option for choosing default runlevel.
2008-04-08 15:59:56 +00:00
Roy Marples
71dd280656
Fix rc-service --help output.
2008-04-07 11:48:32 +00:00
Roy Marples
594d98eddc
Tests now work on NetBSD.
2008-04-07 09:37:14 +00:00
Roy Marples
dcdfdb442f
Some systems are only detectable after /proc is mounted, so re-test if unknown.
2008-04-06 20:06:07 +00:00
Roy Marples
143239e143
Increase pidstr size to 10 chars.
2008-04-06 13:24:10 +00:00
Roy Marples
5d38d4d6e9
p could be null here.
2008-04-06 13:21:42 +00:00
Roy Marples
c18c4fc4cc
Check list existance before iterating, Gentoo #216091 .
2008-04-04 16:31:56 +00:00
Roy Marples
5ebe7f1349
Push out 0.2.1 to solve a few issues.
2008-04-02 16:35:28 +00:00
Roy Marples
6a227d0c45
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-04-02 16:35:02 +00:00
Roy Marples
403abe73de
Fix vlans, #49 .
2008-04-01 21:34:31 +00:00
Roy Marples
be82e950d7
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-03-31 16:31:43 +00:00
Roy Marples
3ca8387966
Document SSD_NICELEVEL.
2008-03-29 09:37:59 +00:00
Roy Marples
f5a9b42215
Restore noserver and noopenvz to sysctl.
2008-03-28 19:05:26 +00:00
Roy Marples
d370918f0c
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-03-28 16:21:59 +00:00
Roy Marples
e995404e3b
Add XEN support to NetBSD.
2008-03-28 16:10:31 +00:00
Roy Marples
caa4704ce6
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-03-28 16:05:11 +00:00
Roy Marples
17d28fde42
Support XEN on NetBSD
2008-03-28 16:04:48 +00:00
Roy Marples
b418f2e471
Allow our headers to be included by C++ programs easily.
2008-03-28 11:06:47 +00:00
Roy Marples
ee4e861796
Put some dir locations in rc.h so that 3rd party apps can become awware of them.
2008-03-28 10:46:12 +00:00
Roy Marples
11e33e81c8
Remove rc_service_start/stop from librc as they block and unmask signals. The application may not wish this behaviour and should fork/exec the service itself.
2008-03-28 08:42:05 +00:00
Roy Marples
5e8ed2aeca
Tweak install of runlevels.
2008-03-27 19:55:03 +00:00
Roy Marples
742310744d
We would sanitize $RC_LIBDIR/sbin as well. If it's really needed then rc-functions.sh will add it back.
2008-03-27 18:34:12 +00:00
Roy Marples
4e9b58b07d
Sanitize the write rc dir.
2008-03-27 17:09:18 +00:00
Roy Marples
c564043f86
No need for the extra rc.
2008-03-27 16:59:33 +00:00
Roy Marples
b3d1182a2f
Fix mulitlib issues.
2008-03-27 16:53:22 +00:00
Roy Marples
f6cb321f9f
NetBSD doesn't work with this powerd.
2008-03-27 14:56:50 +00:00
Roy Marples
f85c6ca84c
Make our messages similar
2008-03-27 14:03:37 +00:00
Roy Marples
d09f9f47eb
Split terminal encoding out.
2008-03-27 13:49:49 +00:00
Roy Marples
b271ac5af5
Fix install of rc and rc.shutdown on the BSD's.
2008-03-27 09:33:20 +00:00
Roy Marples
fccff6a4ed
Allow multiple ntp_servers without error, #47
2008-03-26 22:39:27 +00:00
Roy Marples
a1d555bdc4
Release 0.2
2008-03-26 19:58:43 +00:00
Roy Marples
ecba32d1ca
Install ifwatchd for NetBSD.
2008-03-26 19:39:43 +00:00
Roy Marples
a718975e08
Add license blurb to a few files and append my email to my name.
2008-03-26 17:55:35 +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
864e17fabc
Ignore more files.
2008-03-26 17:34:23 +00:00
Roy Marples
cee3ccc4c1
Fix a segfault if rc.conf does not exist, Gentoo #214887
2008-03-26 15:10:26 +00:00
Roy Marples
f90f2914b9
Add mising net files back.
2008-03-26 14:41:47 +00:00
Roy Marples
ac834ddc56
Fix linux compile.
2008-03-26 14:39:13 +00:00
Roy Marples
8e71c03495
No more need for SUBOS
2008-03-26 14:29:27 +00:00
Roy Marples
833903fc78
use $CP and $SED instead of cp and sed
2008-03-26 14:27:46 +00:00
Roy Marples
ccf238f852
Merge net.OS into net
2008-03-26 14:18:01 +00:00
Roy Marples
55858eca2e
.sh.BSD.in is a better extension.
2008-03-26 14:02:59 +00:00
Roy Marples
ac037241a7
Merge doc dirs.
2008-03-26 13:59:06 +00:00
Roy Marples
6af2b20297
Split sysctl into Linux and BSD specific files.
2008-03-26 09:36:34 +00:00
Roy Marples
1b40379a79
We should sort using LC_ALL=C to avoid locale issues.
2008-03-26 08:43:05 +00:00
Roy Marples
be1f9b0a93
Add --exists and --resolve to rc-service.
2008-03-26 08:08:47 +00:00
Roy Marples
e30ea10e6c
Fix some more prefix stuff.
2008-03-26 05:08:56 +00:00
Roy Marples
3f37d4771b
If we have coldplugged services, but no start_services, we need to create a new list for start_services.
2008-03-26 05:08:38 +00:00
Roy Marples
4f4b74e110
Check the right dir for installed scripts.
2008-03-26 04:48:39 +00:00
Roy Marples
f06e186d43
Fix mandir install.
2008-03-25 20:39:31 +00:00
Roy Marples
5866d829bb
Try and fix more prefix stuff.
2008-03-25 18:33:45 +00:00
Roy Marples
068c90c82b
Fix exclusive removal.
2008-03-25 18:20:23 +00:00
Roy Marples
59b27ad7eb
Fix man install.
2008-03-25 17:37:54 +00:00
Roy Marples
85b480a6f2
Tweak man install.
2008-03-25 17:32:19 +00:00
Roy Marples
ae9ce04468
Allow MANPREFIX to work.
2008-03-25 17:24:54 +00:00
Roy Marples
c807b3a815
INITDIR should already be prefixed.
2008-03-25 17:19:41 +00:00
Roy Marples
4d6b84290a
These now need to be prefixed.
2008-03-25 17:17:15 +00:00
Roy Marples
08791ec4a2
INITDIR should already be prefixed.
2008-03-25 17:11:44 +00:00
Roy Marples
a99b8d349c
SYSCONFDIR should already be prefixed.
2008-03-25 17:09:56 +00:00
Roy Marples
74bff8a931
DIR should be prefixed already.
2008-03-25 16:59:26 +00:00
Roy Marples
a2a7f0740e
Install swap-blk on NetBSD.
2008-03-25 16:40:49 +00:00
Roy Marples
9b2f7bce99
Fix FreeBSD makefile.
2008-03-25 16:25:12 +00:00
Roy Marples
3d0fc150dc
Fix sysctl on Linux and BSD.
2008-03-25 14:35:52 +00:00
Roy Marples
fc7e6a3ada
Fix module args per kernel version.
2008-03-25 14:35:36 +00:00
Roy Marples
748ddf28ed
Include Os Makefile.
2008-03-25 14:15:54 +00:00
Roy Marples
55eb3794fb
Rework our folder structure so that we don't have OS specific dirs, making it easier to share init and conf files per OS.
2008-03-25 14:06:05 +00:00
Roy Marples
08aff6ef44
Allow per kernel version module arguments.
2008-03-25 08:31:48 +00:00
Roy Marples
0347f01345
Fix segfault when no coldplugged services, thanks to Daijo.
2008-03-24 13:30:24 +00:00
Roy Marples
5a80daaf43
Fix coldplug disabling.
2008-03-24 13:09:42 +00:00
Roy Marples
64332a3675
Add debug.mk
2008-03-24 11:52:01 +00:00
Roy Marples
821166fbfd
Fix debug support to work without gmake and bundle -ggdb in properly.
2008-03-24 11:43:03 +00:00
Roy Marples
79719b5386
Fix adding services to the boot runlevel, #43
2008-03-24 10:13:49 +00:00
Mike Frysinger
486d517674
setup a bit of a test framework
2008-03-24 07:17:05 +00:00
Mike Frysinger
1c9c2f9fcf
fixup testing
2008-03-24 06:30:21 +00:00
Mike Frysinger
7b08276fa8
add missing rc_stringlist_new/rc_sys hidden defs
2008-03-24 06:24:46 +00:00
Mike Frysinger
58caa0864f
ignore generated files
2008-03-24 06:18:51 +00:00
Mike Frysinger
9ed5d28d15
add check/test rules
2008-03-24 06:10:40 +00:00
Mike Frysinger
02e7e1b988
dont leak the _e var
2008-03-24 05:54:18 +00:00
Roy Marples
a1b9768243
Fix returning a service descriptions.
2008-03-23 22:58:25 +00:00
Roy Marples
06635dedbc
We don't change service here.
2008-03-23 22:57:56 +00:00
Roy Marples
2715981ff9
Revert commit 48fc097e39ec9b3edd9a8929fe9faf8f302451ec and add a comment about making it a runtime config option if it needs to change.
2008-03-23 20:04:18 +00:00
Roy Marples
ce644e1735
Report mounts in reverse order, Gentoo #214150 .
2008-03-23 19:51:41 +00:00
Mike Frysinger
ec4721dd7f
fix spacing in the trailing [ msg ]
2008-03-23 12:49:40 +00:00
Mike Frysinger
e1b09daaac
fix broken whitespace -- no functional changes
2008-03-23 12:24:15 +00:00
Mike Frysinger
bd34df6361
add support for automatic gdb launching when RC_DEBUG is defined to 1 to ease bug reporting / information gathering
2008-03-22 23:02:30 +00:00
Mike Frysinger
7beafe361a
ignore gdb files
2008-03-22 23:01:06 +00:00
Mike Frysinger
5dcdfcdf7a
add local rpaths if in the git tree
2008-03-22 23:00:32 +00:00
Roy Marples
a4f9eb699b
Fix some crashers in a prefix with few services.
2008-03-21 20:02:10 +00:00
Roy Marples
f7f3b6ae09
euid 0 should always be able to find pids too.
2008-03-21 17:41:01 +00:00
Roy Marples
f6b47568ad
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-03-21 13:04:57 +00:00
Roy Marples
85a6addd23
Only test crashed services if we can see pid 1.
2008-03-21 13:04:29 +00:00
Roy Marples
4079b4d65d
Clean up error display.
2008-03-21 11:20:03 +00:00
Roy Marples
eca292e5d9
Some OS's block on umount -f, so don't use it.
2008-03-21 11:02:02 +00:00
Roy Marples
fe90a548b5
ksoftlevel -> krunlevel
2008-03-21 10:34:09 +00:00
Roy Marples
494fb0a5f6
Add --list to rc-service to list all available services.
2008-03-21 09:10:59 +00:00
Roy Marples
e505e6ea41
We should only free the buffer when done reading the dir.
2008-03-21 08:31:04 +00:00
Roy Marples
e47661449a
More pathing fixes.
2008-03-21 00:30:22 +00:00
Roy Marples
04b0acb010
Fix pathing again.
2008-03-20 19:57:31 +00:00
Roy Marples
e598b7d2cd
Tweak install.
2008-03-20 17:52:07 +00:00
Roy Marples
ec2d39d024
Just warn about the incorrect service. Let the right service be more explanitory about missing options.
2008-03-19 22:26:45 +00:00
Roy Marples
3b888b385a
gitignore
2008-03-19 22:17:10 +00:00
Roy Marples
eea30772d4
Fix last commit.
2008-03-19 22:11:22 +00:00
Roy Marples
d948e65d60
Give a better error message when no service specified.
2008-03-19 20:04:48 +00:00
Roy Marples
97abd91577
Report wrong service correctly.
2008-03-19 20:01:48 +00:00
Roy Marples
5f091395c7
Typo.
2008-03-19 19:59:50 +00:00
Roy Marples
6159a32f39
SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.
2008-03-19 19:57:24 +00:00
Roy Marples
6d2e1f7add
Fix building on Linux.
2008-03-19 19:43:08 +00:00
Roy Marples
d9ec62b22a
Add rc-service and update all softlevel refs to runlevel.
2008-03-19 17:11:50 +00:00
Roy Marples
089caec283
Add missing .mks
2008-03-19 15:38:05 +00:00
Roy Marples
64853c4916
Rejig the build system a little so we have per ok defs per system. Probably easier in the long run.
2008-03-19 15:22:20 +00:00
Roy Marples
0e6eb0f764
Ensure that our path includes packages and local
2008-03-19 15:21:42 +00:00
Roy Marples
f69013adbe
Fix define name
2008-03-19 15:15:09 +00:00
Roy Marples
1443fee901
Fix errors when reporting who we are scheduled by.
2008-03-19 12:26:47 +00:00
Roy Marples
cdd3881c1b
Return scheduled services correctly.
2008-03-19 12:26:09 +00:00
Roy Marples
773d50dabb
Get going_down and parallel the right away round.
2008-03-18 23:06:02 +00:00
Roy Marples
7b8215bbd3
Support pam_mktemp.
2008-03-18 08:19:29 +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
b9eb450696
Fix some tests on FreeBSD.
2008-03-17 17:57:07 +00:00
Roy Marples
c74cfabe2e
init some vars.
2008-03-17 16:42:31 +00:00
Roy Marples
5d77c0db6b
This should be a fixed buffer.
2008-03-17 14:42:10 +00:00
Roy Marples
b2f7606b23
We should check for NULL here.
2008-03-17 14:31:44 +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
50a7697bf2
rc_find_pids now returns RC_PIDLIST instead of a NULL terminated array.
2008-03-17 09:59:52 +00:00
Roy Marples
40930d7d0a
Use correct TAILQ_CONCAT macro when not defined.
2008-03-16 17:27:13 +00:00
Roy Marples
1fd1472dde
Add new stringlist files.
2008-03-16 17:01:35 +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
40e12f6ba0
RC_SERVICE now points to the service file, so daemons can recall us directly.
2008-03-11 15:00:16 +00:00
Roy Marples
568ec5f343
Don't state the fstype we're using as fstab could be totally different.
2008-03-11 13:55:39 +00:00
Roy Marples
6f68c44a77
mount may not be in /sbin
2008-03-11 13:51:06 +00:00
Roy Marples
b7c0d8b43c
Remove debug LDFLAGS
2008-03-11 13:45:58 +00:00
Roy Marples
52a3cc162b
Add a --mount command to fstabinfo so it can mount specific mount points, as mount can get confused with binded mounts, bug #36 .
2008-03-11 13:39:20 +00:00
Roy Marples
0fa512c2b5
Coldplug net devices on the BSD's as found by getifaddrs.
2008-03-11 11:03:34 +00:00
Roy Marples
656b79b51e
Fix getting MAC address on NetBSD.
2008-03-11 00:04:49 +00:00
Roy Marples
8b23aaecff
Add ifwatchd.sh to power the NetBSD ifwatchd program. Let wpa_supplicant work with it.
2008-03-10 21:34:46 +00:00
Roy Marples
f20099bc33
Fix the old RC_USE names.
2008-03-10 11:33:39 +00:00
Roy Marples
a276050a54
Use correct shell_var function, Gentoo bug #212877
2008-03-10 08:56:28 +00:00
Roy Marples
c4a54605e0
Support baselayout-2 uppercase RC_NEED vars, #38 .
2008-03-08 15:22:29 +00:00
Roy Marples
df1377601b
We don't mount /lib/rc/init.d when / is rw at boot.
2008-03-08 15:18:53 +00:00
Roy Marples
4742e1ec69
d_type is not portable across filesystems.
2008-03-08 13:06:29 +00:00