summaryrefslogtreecommitdiff
path: root/init.d/Makefile
Commit message (Collapse)AuthorAge
* Tmpfiles: create and delete entries once in the boot runlevel.William Hubbs2012-10-31
| | | | | | | | | | | | | | | | Initially, we were creating tmpfiles entries in the sysinit runlevel and again in the boot runlevel. Systemd runs the --create and --remove options in one service called systemd-tmpfiles-setup after the local file systems are mounted. Now we have a service called tmpfiles.setup which emulates this. This also closes the bug mentioned below, since we were originally writing to files that were on read-only file systems and that were not available. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 439012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439012
* tmpfiles.d init.d scriptsRobin H. Johnson2012-09-26
| | | | | | | | | | | | Now that the tmpfiles.d code is more tested, actually call it from init.d. It assumes that /run is already available when it runs. Please note it runs TWICE. - During sysinit, ideally just after /dev/shm is created, but before udev has started. After udev is also acceptable, but not ideal. - During boot, ideally just after localmount has completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Import encswap init script from FreeBSDRichard Yao2012-07-15
| | | | | The FreeBSD encswap init script has been adapted to function in OpenRC. It should function identically to its FreeBSD counterpart.
* fix the upstream default network stackWilliam Hubbs2012-07-10
| | | | | | | | The OpenRC upstream default network stack was changed, but there was no reason to change it. Now since we have the MKNET build switch, it is easy for the gentoo ebuild to install oldnet by default. The upstream default is newnet.
* add the MKNET variable to select a network stackWilliam Hubbs2012-07-10
| | | | | | | | The MKNET variable can be used to select the network stack you want to build and install with OpenRC. The current default is the gentoo "oldnet" stack. If you want to install the OpenRC newnet stack, use MKNET=newnet on the make command line.
* Revert "Deprecate the network and staticroute scripts"William Hubbs2012-07-08
| | | | | | | This reverts commit 5994e55937cbbb71b1c22ad829b77a1bcd8c3793. There are situations where these scripts can be useful, so I am bringing them back. Also, I want to start discussions about simplifying the OpenRC network stack.
* Improve swap handlingWilliam Hubbs2012-02-13
| | | | | | | | | | | | | | | | | | Modify the swap script so it starts before and stops after localmount. Also, on linux, this script should skip mounting swap on loopback. Add a swapfiles script which runs after localmount and is designed to activate additional swap space which could not be activated before localmount was run. This includes loopback swap on linux and swapfiles which are on local file systems that were not mounted when swap was activated initially. The start code does reactivate swap that is already active, but this is not an error condition. Reported-by: Giampaolo Tomassoni <giampaolo@tomassoni.biz> X-Gentoo-Bug: 401003 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401003
* Integrate migrate-run into bootmiscWilliam Hubbs2011-12-03
| | | | | | | | | The migrate-run service was hanging when parallel startup was enabled because of its dependencies. This integrates the logic for this service into bootmisc, which will avoid the issues with parallel startup. I would like to thank Robin H. Johnson <robbat2@gentoo.org> for his input on this patch
* Migrate /var/lock and /var/run to /run for linux systemsWilliam Hubbs2011-11-23
|
* Deprecate the network and staticroute scriptsWilliam Hubbs2011-11-16
| | | | | | These scripts are not supported, and they have several major design issues such as not being able to stop, start or allow a dependency on a single interface.
* 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>
* 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
* remove unnecessary shell callsWilliam Hubbs2011-02-04
| | | | | | The main makefile, init.d/Makefile and src/librc/Makefile all contain several shell calls which can be handled as make conditionals. This switches them to conditionals.
* use immediate evaluation for shell callsWilliam Hubbs2011-01-31
| | | | | | | | This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
* Add a new staticroute init script so that .... static routes can be configured!Roy Marples2009-10-16
| | | | Fixes Gentoo #288421.
* Add new utility and init script swclock that sets the system time based onRoy Marples2009-10-13
| | | | | | | 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.
* Default to not building the old net scripts.Roy Marples2009-04-19
|
* Add MKOLDNET=yes/no toggleRoy Marples2009-04-17
|
* Add a new init script - networkRoy Marples2009-04-16
| | | | | | | | | This simply assigns static addresses and an optional default route. It's possible to add external commands as well, so to create a bonded interface. Hopefully we can add a few examples to satisfy most of the old net.lo, which is no longer installed into boot by default.
* 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.
* Ensure that make dep ordering is correct for install.Roy Marples2008-05-06
|
* We need to ensure that the init script started is correct, translating ↵Roy Marples2008-04-29
| | | | symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526.
* Rework our folder structure so that we don't have OS specific dirs, making ↵Roy Marples2008-03-25
| | | | it easier to share init and conf files per OS.
* Add tunable SYSCONFDIRRoy Marples2008-03-05
|
* Use exlicit make targets, not directory contents.Roy Marples2008-03-03
|
* Allow for OS and SUBOS folders so we can introduce NetBSD scripts whilst ↵Roy Marples2008-01-10
| | | | keeping BSD for all BSD's.
* Introduce CONTENTS variable into Makefiles to list the contents of the ↵Roy Marples2007-11-20
| | | | directory, excluding the Makefile for to Make life easier
* Our build chain now works with GNU and BSD make implementationsRoy Marples2007-11-19
|
* Rewrite the core parts in C. We now provide librc so other programs canRoy Marples2007-04-05
query runlevels, services and state without using bash. We also provide libeinfo so other programs can easily use our informational functions. As such, we have dropped the requirement of using bash as the init script shell. We now use /bin/sh and have strived to make the scripts as portable as possible. Shells that work are bash and dash. busybox works provided you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you should disable find too. zsh and ksh do not work at this time. Networking support is currently being re-vamped also as it was heavily bash array based. As such, a new config format is available like so config_eth0="1.2.3.4/24 5.6.7.8/16" or like so config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'" We will still support the old bash array format provided that /bin/sh IS a link it bash. ChangeLog for baselayout-1 can be found in our SVN repo.