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