aboutsummaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
AgeCommit message (Collapse)Author
2011-09-18runscript: simplify livecd-functions.sh loadingMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-31Improve processing of service directories and conf.d filesWilliam Hubbs
symbolic links should not be followed in an attempt to work out the name of the service we are running. Also, @sysconfdir@/conf.d should be tried as a backup directory for configuration files. I would like to thank Robin Johnson for his input on this change. X-Gentoo-Bug: 350910 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=350910
2011-07-26Runscript: print deprecation warning for opts variableWilliam Hubbs
Openrc uses the extra_commands and extra_started_commands variables to list extra commands for services. Also, it supports the opts variable which is used to assist migration from baselayout-1. I am adding this warning to encourage switching from opts to extra_commands/extra_started_commands. I would like to remove support for opts eventually.
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-11do not run services if openrc did not boot the systemWilliam Hubbs
X-Gentoo-Bug: 364159 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=364159
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-12bug 351160: make openrc exit codes LSB compliantEray Aslan
* status on a stopped service now has a return code of 3 (was 1) * starting an already started service now has a return code of 0 (was 1) * stopping an already stopped service now has a return code of 0 (was 1)
2011-01-12bug 328675: add error checking to runscript.shWilliam Hubbs
runscript.sh needs to abort if the . command used to load conf.d files and the service script does not execute successfully. I would like to thank Mike Frysinger for his input wrt style on this patch.
2010-02-20Fix rc_${rc_svcname}_need.Roy Marples
Display config depends in service depend function also.
2009-09-04Allow init scripts to show their dependencies easierRoy Marples
2009-05-26We need to use eval so we can pass "*" as an argument.Roy Marples
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-27Allow templates to define a stop signalRoy Marples
2009-04-26Stop using needless {} in varsRoy Marples
2009-04-18Allow user to provide custom status function and still hook into the system oneRoy Marples
2009-04-18Move status to runscript.sh so init scripts can override it, #159Roy Marples
Return 32 if crashed, #163
2008-04-26Always define template start/stop functions so that the real script name ↵Roy Marples
isn't hidden when errors are in the real start/stop functions, Gentoo #219179
2008-04-21Fix logic for templates.Roy Marples
2008-04-21Punt is_function in favour of POSIX shell builtin command, thanks to Harald ↵Roy Marples
van Dijk for the idea.
2008-04-18We should check type output to ensure that we're really calling a shell ↵Roy Marples
function and not some badly named binary like stop from boinc, Gentoo #218063.
2008-03-25Try and fix more prefix stuff.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-11RC_SERVICE now points to the service file, so daemons can recall us directly.Roy Marples
2008-03-05Add tunable SYSCONFDIRRoy Marples
2008-03-03Introduce LOCAL_PREFIX for a user maintained script location.Roy Marples
2008-03-02Ensure that our scripts call prefixed runscript.Roy Marples
2008-02-27Makefile SH variable now tweaks the default shell used by our scripts.Roy Marples