aboutsummaryrefslogtreecommitdiff
path: root/sh
AgeCommit message (Collapse)Author
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-07-06The is_net_fs function should use extra_net_fs_listWilliam Hubbs
This was pointed out to me by Morse on #gentoo-base, so I would like to thank him for the patch.
2011-07-05fix issue with extra_net_fs_listWilliam Hubbs
The extra_net_fs_list variable was not being included as it should have been for the net file systems because it was being expanded before it was set by the user. X-Gentoo-Bug: 374133 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=374133
2011-07-04eat trailing whitespaceMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-02slight formatting changeWilliam Hubbs
Add a new line after "rc_runlevel()" for consistency.
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27Revert "remove functions.sh symbolic link in init.d"William Hubbs
This reverts commit f4407ac83d84e52c951b4a07640cdcad458010ea.
2011-06-27remove functions.sh symbolic link in init.dWilliam Hubbs
2011-06-03fix underquoting of wrapped color stubs of exit statusMike Frysinger
X-Gentoo-Bug: 369911 X-Gentoo-Bug-URL: http://bugs.gentoo.org/369911 Reported-by: Steve Dibb <beandog@gentoo.org> Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-16only warn about /run if it existsMike 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-04-26change udhcpc support to busybox udhcpcWilliam Hubbs
This updates the udhcpc support to use busybox's udhcpc instead of the stand alone version. I would like to thank jackieku <kjackie@gmail.com> for assisting with this update. X-Gentoo-Bug: 205286 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=205286
2011-04-19fix permissions for /run/lockWilliam Hubbs
If /run/lock is a directory, set the ownership and permissions for it, whether or not we created the directory.
2011-04-18Add support for /run directoryAmadeusz Żołnowski
This is a new directory for storing volatile runtime data. See https://lwn.net/Articles/436012 X-Gentoo-Bug: 363971 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-03-24rework test for mounted /procWilliam Hubbs
The previous test assumed that we could always rely on the minor fault counter to change between reads of /proc/self/stat, but we found that this is not the case. The new test compares two reads of /proc/self/environ for which we have set the same environment variable to two different values. If the comparison shows the two reads have the same contents, we know that /proc is not working. I would like to thank Robin Johnson and Mike Frysinger for their input for this patch. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=348416
2011-01-18sh/init: Detect a mounted /proc without sleepingRobin H. Johnson
Previously we checked if /proc was alive by reading /proc/uptime twice with a 1 second sleep between calls, so that it had time to update. This got a complaint of an entire 1 second delay, so we improve the check to be much faster without sleep. We cannot continue to use /proc/uptime as it only has a 10ms resolution. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=348416 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
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-12-03fix selinux context for rc-svcdir (bug #347503)Robin Johnson
2010-10-28correction for unmounting volumes with weird characters, thanks BrantJory A. Pratt
Gurganus <brant@gurganus.name>
2010-10-27allow net_fs_list to be extended but not replacedWilliam Hubbs
This fixes bug #342825.
2010-09-30surpress output of loadkeys, fix setfont path checkJory A. Pratt
2010-03-16Send SIGKILL after 2 failed SIGTERM when unmounting.Roy Marples
2010-02-26Mount xenfs early so OpenRC can detect it.Juan RP
2010-02-20Fix rc_${rc_svcname}_need.Roy Marples
Display config depends in service depend function also.
2009-11-20If mounting tmpfs fails, try ramfs.Roy Marples
This is because buggy kernels always report tmpfs even when not present.
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-05Fix compile on NetBSDRoy Marples
2009-05-05Ignore more foo for the BSDsRoy Marples
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-30Go back to gitRoy Marples
2009-04-27Allow templates to define a stop signalRoy Marples
2009-04-26Stop using needless {} in varsRoy Marples
2009-04-26Try and set a keymap as early as possible, #169Roy Marples
2009-04-19Use a bashism for a minor speedup in gendepends.shRoy 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
2009-04-16Avoid needless forking, #165Roy Marples
Thanks to Natanael Copa.
2009-01-29We should always mount $RC_SVCDIR unless in a vserver or it's already mounted.Roy Marples
2008-12-04Punt .gitignore files.Roy Marples
2008-11-28Save screen space.Roy Marples
2008-11-13Fix lib.Roy Marples
2008-11-12Mark the addon code as deprecated.Roy Marples
2008-11-04Move romount to mount-ro and use the umount -r option as it's more reliable ↵Roy Marples
for / --bind mounts, Gentoo #239922. Thanks to Duncan.
2008-11-03Add a new shutdown runlevel, Gentoo #224537.Roy Marples
Split halt.sh into halt, killprocs, romount and savecache services. The reboot runlevel is removed but mapped to shutdown. The halt script should be moved to the sysvinit package.
2008-10-10sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples
mounting various bits in /dev and /sys. init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems) To make development of this easier we now return an empty RC_STRINGLIST instead of a NULL for empty things. If you don't have a udev init script installed, don't reboot your box OR roll back to an older OpenRC version.
2008-10-09Fix umounting reporting exit status, Gentoo #239922.Roy Marples