summaryrefslogtreecommitdiff
path: root/sh
Commit message (Collapse)AuthorAge
* CGroups: create the openrc cgroup hierarchyWilliam Hubbs2011-11-20
| | | | | | Openrc will create a cgroup hierarchy called openrc which will have all services it starts and all subsystems attached to it. If you need other groups/hierarchies, please use libcgroup.
* make shell math operations style more succulentMike Frysinger2011-11-19
| | | | | | | | | | | Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* CGroups: /sys/fs/cgroups should be a tmpfsWilliam Hubbs2011-11-18
| | | | | | | | | | | The kernel documentation states that a cgroup file system should not be mounted here, but a tmpfs. This also means that we should not create a group for each process, but we should allow the user to specify which group a process should be assigned to. The rc_cgroup variable will be used for this purpose. For more information, see /usr/src/linux/Documentation/cgroups/cgroups.txt.
* CGroups: fix group initializationWilliam Hubbs2011-11-18
| | | | | Make sure cpuset.cpus and cpuset.mems exist in the parent group before attempting to copy them to the new group.
* CGroups: finish initializing the CGroupWilliam Hubbs2011-11-17
| | | | | | When a CGroup is created, we need to copy cpuset.cpus and cpuset.mems from the new group's parent into the new group before we can attach any processes to it.
* Change RC_CGROUP to lower caseWilliam Hubbs2011-11-17
|
* Add CGroup supportPatrick Lauer2011-11-17
| | | | | X-Gentoo-Bug: 390297 X-Gentoo-Bug: http://bugs.gentoo.org/show_bug.cgi?id=390297
* add support for extra_stopped_commandsWilliam Hubbs2011-11-16
|
* Make sure we load external scripts before using eerrorWilliam Hubbs2011-11-02
| | | | | | Reported-by: Jochen Schlick <josch06@gmail.com> X-Gentoo-Bug: 388715 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=388715
* Use pattern rules instead of suffix rulesWilliam Hubbs2011-10-29
| | | | | | Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
* further clean up OS differences in makefilesMike Frysinger2011-10-20
| | | | | | No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make variable references in Makefiles consistentWilliam Hubbs2011-10-19
| | | | | | Some variable references were written as $(foo), but the majority were written as ${foo}. This commit changes all of the variable references to using braces.
* consolodate MakefilesWilliam Hubbs2011-10-18
| | | | | | | | | | The tree contained many operating system specific Makefiles which were being included in other Makefiles. This commit removes those and adds the code to the makefiles which included them using make's conditional processing. X-Gentoo-Bug: 387441 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=387441
* fix random typosMike Frysinger2011-10-16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* runscript: simplify livecd-functions.sh loadingMike Frysinger2011-09-18
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Revert "Mount /run as early as possible"Christian Ruppert2011-09-12
| | | | | This reverts commit 5ed4d084d95608e40cb21888c18a8f381a44cd69. /run needs to be mounted after /proc.
* Use checkpath to create /run/lockWilliam Hubbs2011-09-07
|
* Mount /run as early as possibleWilliam Hubbs2011-09-06
| | | | | This commit moves the code that mounts /run to the earliest possible position in openrc.
* 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
|