Roy Marples
ac9279cc0d
Massive whitespace cleanup
2007-11-28 15:45:03 +00:00
Roy Marples
d651155b61
Sanitize our PATH a bit better, and terminate it correctly in start-stop-daemon.
2007-11-28 13:40:15 +00:00
Roy Marples
d81def80b0
Move /etc/conf.d/rc to /etc/rc.conf.
...
Lowercase all configurable variables, non configurations remain uppercase.
Replace rc_env_bool with rc_yesno.
Split localmount info procfs (Linux) and dumpon, savecore (BSD)
2007-11-23 12:04:11 +00:00
Roy Marples
39227ede1d
relicense as 2-clause BSD, with the kind permission of Gentoo
2007-11-14 15:22:04 +00:00
Roy Marples
28d9d86dd5
We should always give eend a message.
2007-11-14 14:04:34 +00:00
Roy Marples
e31b9ab088
If we have specified a pidfile then we only stop the pid listed,
...
regardless of other arguments.
2007-11-14 13:45:20 +00:00
Roy Marples
0764a6cb46
Stop using asprintf
2007-10-23 20:43:45 +00:00
Roy Marples
dc3bce5dae
interupt -> interrupt
2007-10-23 15:23:10 +00:00
Roy Marples
c30b64a63a
Allow half a second for a working pidfile to be created and a tenth of a second for a daemon to bail.
2007-10-23 09:05:19 +00:00
Roy Marples
e744a6ba24
Give more time to daemons
2007-10-10 11:55:55 +00:00
Roy Marples
d468572206
Improve applet help a little. Also, if mountinfo as any mounts given, work explictly with --netdev/--nonetdev
2007-10-09 17:41:53 +00:00
Roy Marples
cd4bce7e8d
Wups, should be xstrdup
2007-10-08 11:16:22 +00:00
Roy Marples
a89ceb7e2c
Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore
2007-10-08 11:11:21 +00:00
Roy Marples
bb9ad38de2
Punt rc_is_file
2007-10-04 16:16:06 +00:00
Roy Marples
8b874c9a0f
Revert making function private
2007-10-04 14:11:45 +00:00
Roy Marples
daf868394f
__rc_service_daemon_set is now a private function
2007-10-04 13:51:57 +00:00
Roy Marples
4e9e8d075c
rc_set_service_daemon -> rc_service_daemon_set
2007-10-02 09:04:10 +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
Roy Marples
e24d808fc5
Handle fstab with spaces
2007-09-26 07:30:00 +00:00
Roy Marples
8a7b58a73d
rc_is_env is now rc_env_bool and just works with boolean values.
2007-09-26 07:05:33 +00:00
Mike Frysinger
ab0edd43b9
unify verbose/quiet handling
2007-09-25 23:17:25 +00:00
Roy Marples
c6c7df47a0
Revert last patch
2007-09-25 17:30:07 +00:00
Roy Marples
1a6451654f
We no longer use bool in our public headers, using int instead.
2007-09-25 17:19:02 +00:00
Mike Frysinger
284286004e
Add support for describing the options in the C programs.
2007-09-25 16:21:38 +00:00
Roy Marples
da90cc630e
Remove debug lines
2007-09-24 12:11:50 +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
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
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.
list = rc_strlist_add (list, item);
becomes
rc_strlist_add (&list, item);
2007-09-18 11:36:55 +00:00
Roy Marples
9ea8afb200
No point in having to lots of get the user code.
2007-08-20 09:08:06 +00:00
Roy Marples
bc90e41b76
Intergrate our standard options
2007-08-17 11:01:18 +00:00
Roy Marples
d1a1e3a3c9
Allow --user and --group to also mean --chuid and --chgrp
2007-08-17 10:54:04 +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
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
dd332f377c
Improve spelling
2007-05-27 16:02:25 +00:00
Roy Marples
49b36c5f2e
Remove debug line
2007-05-16 11:28:45 +00:00
Roy Marples
1ac8d86ebe
Stop using getimeofday for timeouts incase the clock changes.
2007-05-16 11:05:42 +00:00
Roy Marples
bbfb7bc409
Add --startas back to s-s-d, #175980 , #175981 .
2007-05-14 12:37:13 +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
c3608471cd
SSD_NICELEVEL can now affect the nicelevel for daemons started
...
by start-stop-daemon, #175397 .
2007-05-02 12:33:56 +00:00
Roy Marples
c1d6bfc721
Don't abort select when on signals
2007-04-25 18:12:49 +00:00
Roy Marples
2569e85579
strdup -> rc_xstrdup
2007-04-19 14:54:35 +00:00
Roy Marples
a07be0513a
s-s-d now allows --signal to be used without --stop and --oknodo. man page updated accordingly
2007-04-13 09:21:16 +00:00
Roy Marples
824e9577e7
Fix module loading, #174360 . s-s-d now changes group when changing user, #174362 .
2007-04-13 06:43:00 +00:00
Roy Marples
e6674b2cae
Cuddle up to LKML C style
2007-04-11 12:44:47 +00:00
Roy Marples
d3db9e9910
Fix indentation
2007-04-10 11:24:58 +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
Roy Marples
308042c87b
We now compile on OpenBSD (no idea if it works or not yet)
2007-04-05 15:01:09 +00:00
Roy Marples
5af58b4514
Rewrite the core parts in C. We now provide librc so other programs can
...
query runlevels, services and state without using bash. We also provide
libeinfo so other programs can easily use our informational functions.
As such, we have dropped the requirement of using bash as the init script
shell. We now use /bin/sh and have strived to make the scripts as portable
as possible. Shells that work are bash and dash. busybox works provided
you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
should disable find too.
zsh and ksh do not work at this time.
Networking support is currently being re-vamped also as it was heavily bash
array based. As such, a new config format is available like so
config_eth0="1.2.3.4/24 5.6.7.8/16"
or like so
config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"
We will still support the old bash array format provided that /bin/sh IS
a link it bash.
ChangeLog for baselayout-1 can be found in our SVN repo.
2007-04-05 11:18:42 +00:00