aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-applets.c
AgeCommit message (Collapse)Author
2012-05-23rc: fix inverted string compare logicMike Frysinger
X-Gentoo-Bug: 417227 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=417227 Reported-by: sphakka <marcoep@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-16rc: fix thinko in applet collapseMike Frysinger
We want to lookup the service based on the applet name. Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-06rc: collapse the applet if statements into a single array walkMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-26Disable some questionable linesChristian Ruppert
Caused by bug 412589 I was looking at the do_mark_service() function and quickly found that the segfault is caused by a strlen() call against a NULL pointer. I also noticed it's using "/exclusive/%s.%s" so svcname.pid, all other functions are just using the svcname.. So it seems that svcname.pid was/is never used and thus not necessary at all. In relation to the above, the if statement in the do_mark_service() function ("if (ok && svcname && strcmp(svcname, service) == 0) {") needs to be fixed/improved as svcname and service are almost always equal, see my comment in the function for further details. Signed-off-by: Christian Ruppert <idl0r@gentoo.org> Reported-by: Patrick McLean <chutzpah@gentoo.org> X-Gentoo-Bug: 412589 X-Gentoo-Bug-URL: https://bugs.gentoo.org/412589
2012-04-24Remove duplicate getenv("RC_SVCNAME") callChristian Ruppert
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-16new implementation of applet optionWilliam Hubbs
This reworks the implementation of the --applet option so that it is processed in run_applets() and does not require two calls to the getopts_long() function. It is based on code by Robin Johnson and Chris Richards. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Clean up all trailing whitespace in src/.Robin H. Johnson
2010-01-08random spelling fixesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-13Add new utility and init script swclock that sets the system time based onRoy Marples
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-05-01Add (c) to CopyrightRoy Marples
2009-04-23Improve style for KNFRoy Marples
2009-04-18Move status to runscript.sh so init scripts can override it, #159Roy Marples
Return 32 if crashed, #163
2009-01-12We now warn about clock skewsRoy Marples
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
2008-10-10Remove coldplug and just have hotplug which is a list of allowed/disallowed ↵Roy Marples
services. Makes things much easier.
2008-10-08Clean up warnings regarding printf.Roy Marples
2008-09-18Clean up some compile warnings.Roy Marples
2008-07-27Attempt to make s-s-d simpler by not enforcing the need for a full path and ↵Roy Marples
maybe working better with interpreted scripts.
2008-07-03Fix is_older_than a little better, and make is_newer_than correct.Roy Marples
2008-07-03Add older_than function to complement newer_than function. Also make the ↵Roy Marples
userland instance reversed to be compatable with current baselayout, which truely does suck.
2008-06-04Include time headers for ewaitfile.Roy Marples
2008-06-03Add the ewaitfile function so init scripts can wait until sockts are ↵Roy Marples
created, Gentoo #175783.
2008-04-17Cast to unsigned char for ctype calls.Roy Marples
2008-04-06p could be null here.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-25Fix exclusive removal.Roy Marples
2008-03-21Add --list to rc-service to list all available services.Roy Marples
2008-03-19Just warn about the incorrect service. Let the right service be more ↵Roy Marples
explanitory about missing options.
2008-03-19Give a better error message when no service specified.Roy Marples
2008-03-19Report wrong service correctly.Roy Marples
2008-03-19SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.Roy Marples
2008-03-19Add rc-service and update all softlevel refs to runlevel.Roy Marples
2008-03-16Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples
from queue(3). Refactor code style around the BSD KNF.
2008-02-23Now that s-s-d accepts >1 argument for stopping a daemon on match we need to ↵Roy Marples
store all arguments used incase a service started the same daemon more than once with different paramters.
2008-01-28Fix service_started_daemon, bug #11Roy Marples
2008-01-22Quiet some more lint warnings.Roy Marples
2008-01-21Checking first char for null is more efficient than strlen.Roy Marples
2008-01-21 should not produce a red starRoy Marples
2008-01-14Fix shell_var as reported by lamusic.Roy Marples
2008-01-14Fix is_older_than.Roy Marples
2008-01-14Put the applets into rc-applet.c so that rc.c is easier to manage.Roy Marples