Roy Marples
a215128475
Install our .so links to /usr/lib
2007-11-14 16:42:56 +00:00
Roy Marples
69a040bf85
Show help if we don't have any args, Gentoo #198380 .
2007-11-14 16:19:56 +00:00
Roy Marples
ccf79ceb47
Control of system defined env vars should not be done by us.
2007-11-14 13:39:34 +00:00
Roy Marples
7cd70aee4d
You can now log baselayout-2 again, through the RC_LOGGER conf.d/rc
...
setting. The log is temp stored in /lib/rc/init.d/rc.log and appended
to /var/log/rc.log if it's writeable. sysinit cannot be logged in Linux
as we rely on sysinit to bring the system up to a point where we can log.
single user cannot be logged on FreeBSD due to waitpid(0,0,0) incorrectly
waiting for the log daemon in another process group.
2007-10-31 15:46:56 +00:00
Roy Marples
a28dd2d4ef
We now build and optionally work with static libraries.
2007-10-16 13:49:00 +00:00
Roy Marples
77205862e3
Bump librc and libeinfo to .so.1
2007-10-11 15:05:02 +00:00
Roy Marples
2613316686
Fix failed services a little, and make timeout more sane
2007-10-09 21:13:08 +00:00
Roy Marples
e7dab9bb91
Move rc_env_filter and rc_env_config out of librc and into rc
2007-10-08 11:07:39 +00:00
Roy Marples
2691f95a3a
rc doesn't and shouldn't use libkvm
2007-10-05 12:04:19 +00:00
Roy Marples
422ac82ef9
librc.so and libeinfo.so now have symbol versions.
2007-10-03 15:46:02 +00:00
Roy Marples
f795cd20f8
librc doesn't use libeinfo
2007-09-29 17:03:21 +00:00
Roy Marples
837f43e163
librc no longer uses libeinfo. deptree function names are now all under rc_deptree_
2007-09-29 16:42:08 +00:00
Roy Marples
8c402e53ee
Clean makefile for duplicate rules
2007-09-27 22:14:23 +00:00
Roy Marples
1d0b234e94
Fix Makefile for pmake, document s-s-d options and increase usage gap
2007-09-26 10:46:44 +00:00
Mike Frysinger
727a2d90ee
add some tests to make sure our exported symbols are sane
2007-09-26 08:44:39 +00:00
Roy Marples
1e4e8ed27a
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
2007-09-25 15:38:21 +00:00
Mike Frysinger
5e28066929
split links out into a sep target so implicit rules dont cause problems
2007-09-25 01:42:24 +00:00
Roy Marples
e95cea3d86
Split our rc commands out into general use vs service commands
2007-09-24 12:09:43 +00:00
Roy Marples
45bd125dcc
Use a pty for prefixed output instead of pipes for stdout/stderr. This
...
is so that programs can get information about the controlling terminal.
This change was triggered by bug #188506 where it's possible that
stdin, stdout and stderr didn't point to a terminal but ended up on one
via our pipes. Using a pty means that stdout and stderr always point to
a terminal, but we lose the ability to tell them apart.
If there is not a pty available then we use un-prefixed output as normal.
This change has also introduced the need for a signal pipe so that
SIGCHLD can exit the loop cleanly.
2007-09-21 08:49:43 +00:00
Roy Marples
b6aa1c857c
Added the checkown applet based on the work by Renato Caldas, #192682
...
checkdir ensures that the specified files (or directories) are owned
by the current user/group or as specified on the command line. You can
optionally check permissions too.
2007-09-19 16:27:37 +00:00
Roy Marples
77f9015f0b
/lib/rcscripts -> /lib/rc
2007-09-19 13:53:40 +00:00
Roy Marples
a5585487aa
More --as-needed foo
2007-09-11 22:06:27 +00:00
Roy Marples
607f2b37b1
Work better with --as-needed
2007-09-11 21:45:26 +00:00
Roy Marples
bc6b031f2e
librc should link against libeinfo too
2007-09-10 21:26:13 +00:00
Roy Marples
ba4b5d5b7f
Makefile in src now supports pmake as used on the BSDs.
2007-09-06 13:00:03 +00:00
Roy Marples
6e5c8f8e5a
Add esyslog support
2007-08-16 16:53:20 +00:00
Roy Marples
0084bc41ef
Don't link to rt anymore as it makes dlopen leak - we now use nanosleeps to achieve the same goal (a loop + timeout). No longer put / at the end of directories, instead prefix like so RC_LIBDIR "/foo" to ensure more robust code.
2007-08-09 14:33:20 +00:00
Roy Marples
3e5526fd76
Fix rc-update, #187487 and release rc2.
2007-08-04 15:05:12 +00:00
Roy Marples
534b4300e7
rc1
2007-08-02 11:09:09 +00:00
Roy Marples
c22ccdf577
Wups, don't force those CFLAGS
2007-07-31 16:59:02 +00:00
Roy Marples
a4e7e802ac
Force some stuff
2007-07-31 16:57:16 +00:00
Roy Marples
cb172722a9
Fix building on Linux
2007-07-31 16:35:24 +00:00
Roy Marples
b6b849bfd7
Link the right objects against rc
2007-07-31 16:16:18 +00:00
Roy Marples
c674026f9e
All our binaries are now mulicalls into rc, which makes our on disk size
...
a lot smaller.
2007-07-31 16:05:56 +00:00
Roy Marples
356c41f77c
Punt the dodgy ebuffer code. We now force prefixing for parallel starts which also reduces our variable pollution.
2007-07-11 12:06:37 +00:00
Roy Marples
1ac8d86ebe
Stop using getimeofday for timeouts incase the clock changes.
2007-05-16 11:05:42 +00:00
Roy Marples
0942916b72
Allow time for pidfiles to be created, #178274 .
...
Use int instead of char for getopt, #178084 thanks to drizztbsd.
2007-05-14 12:24:18 +00:00
Roy Marples
c52f216450
Added the rc-abort command, #175106 thanks to Daniel Drake.
2007-04-20 13:12:21 +00:00
Roy Marples
f657d87b99
Rationalise our colour usage a little.
2007-04-17 09:32:18 +00:00
Roy Marples
36e16cef47
Ignore and clean .depend
2007-04-13 15:23:03 +00:00
Mike Frysinger
cb20c5da98
make sure .depend gets regenerated automatically
2007-04-13 13:21:27 +00:00
Mike Frysinger
2ea37cdae3
add .depend / .PHONY support
2007-04-13 13:20:26 +00:00
Mike Frysinger
2348f115c0
use CPPFLAGS rather than CFLAGS where appropriate and make LDFLAGS/-rpath dynamic by only enabling when in .svn repo
2007-04-13 13:06:53 +00:00
Mike Frysinger
5ee5f0c661
revert previous commit
2007-04-13 12:59:12 +00:00
Mike Frysinger
e3440c8ba3
dont create .so links as they arent needed for runtime
2007-04-13 12:55:43 +00:00
Mike Frysinger
51f43d5a53
use ln -sf rather than ln -s incase target exists
2007-04-13 12:39:14 +00:00
Mike Frysinger
21902ef882
add a symlink for update-rc -> rc-update
2007-04-13 12:38:00 +00:00
Roy Marples
f754c661f5
Add new service hooks, remove pmake stuff from our Makefile and fix rc_services_in_state for scheduled.
2007-04-11 07:15:02 +00:00
Roy Marples
0c98067d57
Misc network fixes so we work on my stable server. Splash plugin removed as splashtuils-1.4 now ships with its own.
2007-04-10 10:33:44 +00:00
Roy Marples
3c7c1736b7
Use names instead of numbers for reporting signals and trap signals in rc
2007-04-09 16:53:21 +00:00