0feddbd815
Use kill for the pid check as it's fast.
Roy Marples
2009-04-25 20:44:13 +00:00
bd6bb932df
Don't report final eends for interfaces as they make no sense.
Roy Marples
2009-04-25 18:02:28 +00:00
f51d8d0b7d
Document interfaces variable useage a bit better.
Roy Marples
2009-04-25 13:44:41 +00:00
42580d67b8
Verbosely report vars correctly.
Roy Marples
2009-04-25 11:39:18 +00:00
c07b384d82
Don't drop to sulogin by default, but make this configurable.
Roy Marples
2009-04-24 11:49:55 +00:00
bd211d534b
We should match the full variable name.
Roy Marples
2009-04-24 11:45:48 +00:00
b0ac71fe2a
Add missing show levels switch.
Roy Marples
2009-04-24 10:23:49 +00:00
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.
Roy Marples
2009-04-24 10:17:53 +00:00
e2629b0a3b
Remove .depend before creating it.
Roy Marples
2009-04-24 08:33:11 +00:00
5276b13926
Cast to int
Roy Marples
2009-04-24 08:32:44 +00:00
e7b35a8f15
Allow rc to start (optionally stop) crashed services, #120
Roy Marples
2009-04-24 07:03:08 +00:00
e643a7fdd5
Describe interval units
Roy Marples
2009-04-24 06:37:29 +00:00
ade85d4bd8
Improve style for KNF
Roy Marples
2009-04-23 21:31:22 +00:00
6953474655
Style
Roy Marples
2009-04-23 20:53:24 +00:00
d231a2f0d9
Fix logic, thanks to Maryasin Semen
Roy Marples
2009-04-23 20:44:17 +00:00
7086df5664
Don't include hotplugged services in manual.
Roy Marples
2009-04-23 20:27:40 +00:00
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.
Roy Marples
2009-04-23 20:20:17 +00:00
953b0b7435
Document -i, --interpreted flag.
Roy Marples
2009-04-22 10:49:07 +00:00
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.
Roy Marples
2009-04-22 10:45:01 +00:00
588c9da0ab
Document DHCP and iwconfig.
Roy Marples
2009-04-19 21:45:09 +00:00
7e9cdbd16e
Document \$int and how to create bridge and vlan interfaces.
Roy Marples
2009-04-19 21:35:26 +00:00
a2856fe192
Use shell_var for shell variables.
Roy Marples
2009-04-19 21:10:06 +00:00
8e5a601087
Style
Roy Marples
2009-04-19 21:02:31 +00:00
a01f9be6f2
We should use $int for compat with NetBSD
Roy Marples
2009-04-19 20:59:46 +00:00
371506be48
Default to not building the old net scripts.
Roy Marples
2009-04-19 20:54:11 +00:00
4febf00c06
Allow family on routes, #152
Roy Marples
2009-04-19 20:05:40 +00:00
73f6d1c39e
Document defaultroute
Roy Marples
2009-04-19 18:36:06 +00:00
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
Roy Marples
2009-04-19 18:20:49 +00:00
e2942e34af
Use a bashism for a minor speedup in gendepends.sh
Roy Marples
2009-04-19 16:47:09 +00:00
bbd810425b
Move special umount of tmpfs to the swap init script where it belongs, #149.
Roy Marples
2009-04-19 11:15:37 +00:00
bb6614f4e1
Document rc_nostop, #118
Roy Marples
2009-04-19 10:25:38 +00:00
170547010f
Pull /etc/ifconfig.eth0 into interfaces Reverse list of interfaces when stopping Improve build for conf.d/network
Roy Marples
2009-04-19 08:52:00 +00:00
3579663173
Don't leak the lock fd.
Roy Marples
2009-04-18 19:54:04 +00:00
802fe9709e
Allow user to provide custom status function and still hook into the system one
Roy Marples
2009-04-18 10:39:53 +00:00
657cb3a6eb
Fix compile on FreeBSD.
Roy Marples
2009-04-18 00:57:17 +00:00
9225c6cefb
Not all systems have the utmp group
Roy Marples
2009-04-18 00:56:48 +00:00
1a2d81751d
Support BSDs
Roy Marples
2009-04-18 00:56:26 +00:00
c9e24a0494
Move status to runscript.sh so init scripts can override it, #159 Return 32 if crashed, #163
Roy Marples
2009-04-18 00:09:03 +00:00
d4c71415a9
Add MKOLDNET=yes/no toggle
Roy Marples
2009-04-17 23:23:31 +00:00
ee54bb9372
Using fifos for locking can be error prone. flocks are safer, as we only use tmpfs for our lock files.
Roy Marples
2009-04-17 22:55:11 +00:00
7138c1532c
Typo, thanks to Matthias Schwarzott, #166.
Roy Marples
2009-04-17 09:48:34 +00:00
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.
Roy Marples
2009-04-16 23:47:23 +00:00
95d954e7b5
Improve utmp handling
Roy Marples
2009-04-16 23:39:37 +00:00
744a8bbb4a
Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
Roy Marples
2009-04-16 23:34:38 +00:00
ace0b9653b
Avoid needless forking, #165 Thanks to Natanael Copa.
Roy Marples
2009-04-16 23:23:21 +00:00
966ecb24da
Add net dependency
Roy Marples
2009-04-16 21:02:46 +00:00
dea9e11a69
When logging, stdout isn't always a tty, which is the case for VPS systems, Thanks to mwrobel - fixes#106.
Roy Marples
2009-04-02 23:55:19 +00:00
0b12faed7f
We should abort boot on some errors.
Roy Marples
2009-03-16 21:41:23 +00:00
34fbf3db2f
Add scripts for dhcpcd and wpa_supplicant.
Roy Marples
2009-03-05 20:41:07 +00:00
132dfd7b1e
Typo, thanks to Polynomial-C
Roy Marples
2009-03-05 00:41:44 +00:00
077b2d3ba8
Report if service is not executable.
Roy Marples
2009-02-28 14:12:19 +00:00
907ca8a89f
Set errno when service does not exist better.
Roy Marples
2009-02-28 14:12:03 +00:00
f38ef00939
Fix unit test.
Roy Marples
2009-02-23 10:43:24 +00:00
66cd081301
Change wipe_tmp_dirs to clean_tmp_dirs so user understands meaning better, #153
Roy Marples
2009-02-23 09:36:48 +00:00
749938d439
Style.
Roy Marples
2009-02-23 09:35:57 +00:00
70d8c5beda
Typo, #150 Thanks to betelgeuse
Roy Marples
2009-02-13 12:52:29 +00:00
b60f437b52
Fix the number of terminals to operate on. Thanks to Dimitrios Christidis <chrjim@gmail.com>
Roy Marples
2009-02-13 12:24:32 +00:00
d6d2635c51
root should respect inittab, #148.
Roy Marples
2009-02-12 18:12:57 +00:00
6cc68e21cf
Fix return value for tests.
Roy Marples
2009-02-12 10:43:30 +00:00
9f3cf59818
hostid does not need root to run
Roy Marples
2009-02-11 17:42:14 +00:00
7a628e1db7
Release 0.4.3
Roy Marples
2009-02-11 06:54:58 +00:00
3fc17f5966
Store the file skewed against.
Roy Marples
2009-02-10 15:25:28 +00:00
522ab21fbf
Only create the reboot file if rebooting.
Roy Marples
2009-02-10 15:16:25 +00:00
3d7b56f2e2
Create /reboot if running inside OpenVZ, #138. This should be fine as vpsreboot should only restart a stopped container.
Roy Marples
2009-02-10 15:06:48 +00:00
6bb44be2a3
We should always mount $RC_SVCDIR unless in a vserver or it's already mounted.
Roy Marples
2009-01-29 13:38:15 +00:00
415fe87d8c
Clean up some compiler warnings.
Roy Marples
2009-01-29 13:29:04 +00:00
4f163f9b9a
Allow wpa_cli_$IFACE to too send args to wpa_cli.
Roy Marples
2009-01-21 09:25:34 +00:00
417a817d25
noinit makes more sense than noinitd
Roy Marples
2009-01-18 20:02:50 +00:00
30a7a3a9bf
Fix locale with svnversion, #140 thanks to Matthias Schwarzott.
Roy Marples
2009-01-14 14:32:56 +00:00
5208a1de29
yes should be YES
Roy Marples
2009-01-13 11:04:37 +00:00
abcc4c5c72
Don't allow SYSVINIT parameters through anymore. RC_REBOOT is now yes when rebooting. Document the special reboot runlevel.
Roy Marples
2009-01-13 11:02:00 +00:00
fcf1cce549
rc_newer/older_than only report file if time_t is a pointer, so it should take precedence in the argument list.
Roy Marples
2009-01-13 09:11:31 +00:00
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
Roy Marples
2009-01-12 23:53:13 +00:00
2243c01390
Add snapshot and snap targets
Roy Marples
2009-01-12 23:12:06 +00:00
a52472c3c3
Fix ordering, #139 thanks to Matthias.
Roy Marples
2009-01-12 10:24:47 +00:00
f23822e082
Copyright
Roy Marples
2009-01-12 10:24:00 +00:00
8a9a2d5fe9
Use snprintf instead of strlcpy to save on size if not available.
Roy Marples
2009-01-12 08:31:03 +00:00
a33554ab18
Copyright
Roy Marples
2009-01-11 17:17:04 +00:00
baf0ce64f5
Ensure that $HOME and $USER are always set, #139
Roy Marples
2009-01-11 17:09:13 +00:00
26f70a5277
Style
Roy Marples
2009-01-10 12:18:00 +00:00
36c53e7551
Keyword novserver, #137.
Roy Marples
2009-01-06 16:25:33 +00:00
5ca3345534
Release openrc-0.4.2
Roy Marples
2009-01-05 20:16:50 +00:00
0298e4ffa0
Remove leading and trailing space on the ctrl_interface line.
Roy Marples
2009-01-05 09:37:38 +00:00
a063035b37
Make _SVNVER_SH more readable.
Roy Marples
2009-01-02 22:51:47 +00:00
213cef1739
Fix version for releases.
Roy Marples
2009-01-02 16:48:42 +00:00
386ee57432
Fix compile, #136
Roy Marples
2009-01-02 15:11:15 +00:00
631acff7aa
Document the --chuid option.
Roy Marples
2009-01-01 14:32:09 +00:00
877a328179
dmesg and sysfs won't work in a vserver, #137 thanks to Hollow.
Roy Marples
2009-01-01 14:27:29 +00:00
1efa64cae8
Typo.
Roy Marples
2008-12-30 19:08:51 +00:00
22959c3963
Fix working on zsh
Roy Marples
2008-12-30 00:05:17 +00:00
2464f9e93b
Add parens, #134 thanks to Matthias Schwarzott.
Roy Marples
2008-12-29 23:06:22 +00:00
d91201cb94
Skip all forcefsck checking when stopping, #134.
Roy Marples
2008-12-28 15:25:40 +00:00
1c5ec9d161
Fake get_bootparam function so that we don't check for kernel options forcefsck when doing an fsck on shutdown.
Roy Marples
2008-12-28 14:49:07 +00:00
f4b8366942
Parse retry schedule correctly, #129. Thanks to vaeth.
Roy Marples
2008-12-28 14:05:33 +00:00
438665357b
Release 0.4.1
Roy Marples
2008-12-23 10:45:16 +00:00
7ad40abf64
Our error messages don't have full stops at the end
Roy Marples
2008-12-23 10:42:25 +00:00
7e12abe035
Typo.
Roy Marples
2008-12-23 10:41:33 +00:00
4dba5b1ff1
Disallow hotplug to run during sysinit, but allow elsewhere. Fixes#131.
Roy Marples
2008-12-23 10:40:27 +00:00