Commit Graph

69 Commits

Author SHA1 Message Date
Roy Marples
b768255ee4 Don't install relative symlinks 2007-12-28 15:21:59 +00:00
Roy Marples
f1d1281c04 Let service_started_daemon work off SVCNAME 2007-12-20 15:44:38 +00:00
Roy Marples
f02d9b6f6f checkown -> checkpath 2007-12-19 14:46:38 +00:00
Roy Marples
ed620aec61 get_options -> service_get_value and save_options -> service_set_value 2007-12-19 14:28:38 +00:00
Roy Marples
9f2403dffa Remove Gentoo copyright from all files that I know I have written 2007-12-14 14:12:38 +00:00
Roy Marples
9a6cfc0a9b Add termcap support. 2007-12-08 02:50:35 +00:00
Roy Marples
9252492d2f We don't care about update-rc 2007-11-28 15:50:18 +00:00
Roy Marples
ac9279cc0d Massive whitespace cleanup 2007-11-28 15:45:03 +00:00
Roy Marples
5f120db647 Fix install permissions a little 2007-11-23 14:42:19 +00:00
Roy Marples
6be2c2934b rc.c needs version.h 2007-11-19 18:36:10 +00:00
Roy Marples
88ccccc22a Move runlevel and lib logic to the sub Makefiles 2007-11-19 16:42:28 +00:00
Roy Marples
5f8cf73b22 Our build chain now works with GNU and BSD make implementations 2007-11-19 13:48:43 +00:00
Roy Marples
959219f236 Vanilla FreeBSD make is now supported for src 2007-11-15 15:25:51 +00:00
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