faa555efe2
No need for this convulted sed now our prefixed output is on a direct terminal again :)
Roy Marples2007-09-21 08:54:36 +00:00
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.
Roy Marples2007-09-21 08:49:43 +00:00
50ea72ef4b
Allow checkown to create files too.
Roy Marples2007-09-19 17:08:25 +00:00
40a1beabe0
Move the error messages to the option parsing
Roy Marples2007-09-19 16:54:23 +00:00
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.
Roy Marples2007-09-19 16:27:37 +00:00
936dc94351
API change! rc_ls_dir, rc_get_config and rc_get_list no longer take a starting list as a first argument. Instead, use rc_strlist_join to append or prepend the new list to an existing list.
Roy Marples2007-09-18 12:04:51 +00:00
f1bba12892
API change! rc_strlist_add and friends now take char *** instead of char ** and return a pointer to the item added instead of the new list head. This is so we can easily tell if the item was successfully added or not instead of iterating through the list looking for it.
Roy Marples2007-09-18 11:36:55 +00:00
99eabdc3ba
Re-work mountinfo so that we have a lot less OS specific code
Roy Marples2007-09-18 09:20:30 +00:00
bc6b031f2e
librc should link against libeinfo too
Roy Marples2007-09-10 21:26:13 +00:00
2aac9fa464
revert EARLY_MOUNTS since everything in the boot runlevel depends on localmount already and anything that runs before it does not rely on things like /tmp or /var/run (and because i confused localmount with checkroot)
Mike Frysinger2007-09-09 16:49:40 +00:00
869da3c685
only do the X lock stuff in /tmp so people can overload WIPE_TMP_DIRS for a general "wipe this directory" option. also force +t on /tmp and /var/tmp.
Mike Frysinger2007-09-09 16:08:32 +00:00
230421384a
Allow people to specify a list of early mount points which will be mounted at the end of localmount so they can do tmpfs on things like /tmp #181527.
Mike Frysinger2007-09-09 16:04:40 +00:00
06ae2e5593
Allow people to specify a list of temp dirs to clean in bootmisc #191807.
Mike Frysinger2007-09-09 15:52:05 +00:00
ba4b5d5b7f
Makefile in src now supports pmake as used on the BSDs.
Roy Marples2007-09-06 13:00:03 +00:00
4a8feebc1b
As discussed on the -dev ml, RC_DEPEND_STRICT now defaults to yes.
Roy Marples2007-08-20 09:10:24 +00:00
9ea8afb200
No point in having to lots of get the user code.
Roy Marples2007-08-20 09:08:06 +00:00
0963e06766
Mark the right service as failed and only output a new line if we outputted anything at all for /etc/init.d/foo needsme
Roy Marples2007-08-17 13:23:43 +00:00
3950eb6eba
`config /etc/fstab' can now be used in depend() functions to show that the deptree should be regenerated if /etc/fstab has changed.
Roy Marples2007-08-15 14:49:41 +00:00
7d68200f24
Add bzr port 4155 to /etc/services, #188970 thanks to Andrew Cowie.
Roy Marples2007-08-15 11:20:08 +00:00
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.
Roy Marples2007-08-09 14:33:20 +00:00
9072ce748f
getoptify and simply the code even more.
Roy Marples2007-08-09 09:53:47 +00:00