summaryrefslogtreecommitdiff
path: root/sh
Commit message (Collapse)AuthorAge
* Improve processing of service directories and conf.d filesWilliam Hubbs2011-07-31
| | | | | | | | | | | 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
* Runscript: print deprecation warning for opts variableWilliam Hubbs2011-07-26
| | | | | | | | | | | 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.
* The is_net_fs function should use extra_net_fs_listWilliam Hubbs2011-07-06
| | | | | This was pointed out to me by Morse on #gentoo-base, so I would like to thank him for the patch.
* fix issue with extra_net_fs_listWilliam Hubbs2011-07-05
| | | | | | | | | 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
* eat trailing whitespaceMike Frysinger2011-07-04
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* slight formatting changeWilliam Hubbs2011-07-02
| | | | Add a new line after "rc_runlevel()" for consistency.
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Revert "remove functions.sh symbolic link in init.d"William Hubbs2011-06-27
| | | | This reverts commit f4407ac83d84e52c951b4a07640cdcad458010ea.
* remove functions.sh symbolic link in init.dWilliam Hubbs2011-06-27
|
* fix underquoting of wrapped color stubs of exit statusMike Frysinger2011-06-03
| | | | | | | | 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>
* only warn about /run if it existsMike Frysinger2011-05-16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* do not run services if openrc did not boot the systemWilliam Hubbs2011-05-11
| | | | | X-Gentoo-Bug: 364159 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=364159
* change udhcpc support to busybox udhcpcWilliam Hubbs2011-04-26
| | | | | | | | | | | 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
* fix permissions for /run/lockWilliam Hubbs2011-04-19
| | | | | If /run/lock is a directory, set the ownership and permissions for it, whether or not we created the directory.
* Add support for /run directoryAmadeusz Żołnowski2011-04-18
| | | | | | | | 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
* rework test for mounted /procWilliam Hubbs2011-03-24
| | | | | | | | | | | | | | | | | 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
* sh/init: Detect a mounted /proc without sleepingRobin H. Johnson2011-01-18
| | | | | | | | | | | | 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>
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bug 351160: make openrc exit codes LSB compliantEray Aslan2011-01-12
| | | | | | * 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)
* bug 328675: add error checking to runscript.shWilliam Hubbs2011-01-12
| | | | | | | 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.
* fix selinux context for rc-svcdir (bug #347503)Robin Johnson2010-12-03
|
* correction for unmounting volumes with weird characters, thanks BrantJory A. Pratt2010-10-28
| | | | Gurganus <brant@gurganus.name>
* allow net_fs_list to be extended but not replacedWilliam Hubbs2010-10-27
| | | | This fixes bug #342825.
* surpress output of loadkeys, fix setfont path checkJory A. Pratt2010-09-30
|
* Send SIGKILL after 2 failed SIGTERM when unmounting.Roy Marples2010-03-16
|
* Mount xenfs early so OpenRC can detect it.Juan RP2010-02-26
|
* Fix rc_${rc_svcname}_need.Roy Marples2010-02-20
| | | | Display config depends in service depend function also.
* If mounting tmpfs fails, try ramfs.Roy Marples2009-11-20
| | | | This is because buggy kernels always report tmpfs even when not present.
* Allow init scripts to show their dependencies easierRoy Marples2009-09-04
|
* We need to use eval so we can pass "*" as an argument.Roy Marples2009-05-26
|
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | 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.
* Fix compile on NetBSDRoy Marples2009-05-05
|
* Ignore more foo for the BSDsRoy Marples2009-05-05
|
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Go back to gitRoy Marples2009-04-30
|
* Allow templates to define a stop signalRoy Marples2009-04-27
|
* Stop using needless {} in varsRoy Marples2009-04-26
|
* Try and set a keymap as early as possible, #169Roy Marples2009-04-26
|
* Use a bashism for a minor speedup in gendepends.shRoy Marples2009-04-19
|
* Allow user to provide custom status function and still hook into the system oneRoy Marples2009-04-18
|
* Move status to runscript.sh so init scripts can override it, #159Roy Marples2009-04-18
| | | | | Return 32 if crashed, #163
* Avoid needless forking, #165Roy Marples2009-04-16
| | | | | Thanks to Natanael Copa.
* We should always mount $RC_SVCDIR unless in a vserver or it's already mounted.Roy Marples2009-01-29
|
* Punt .gitignore files.Roy Marples2008-12-04
|
* Save screen space.Roy Marples2008-11-28
|
* Fix lib.Roy Marples2008-11-13
|
* Mark the addon code as deprecated.Roy Marples2008-11-12
|
* Move romount to mount-ro and use the umount -r option as it's more reliable ↵Roy Marples2008-11-04
| | | | for / --bind mounts, Gentoo #239922. Thanks to Duncan.
* Add a new shutdown runlevel, Gentoo #224537.Roy Marples2008-11-03
| | | | | | | 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.
* sysinit is now a real runlevel that handles things like udev, dmesg andRoy Marples2008-10-10
| | | | | | | | | | | 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.