summaryrefslogtreecommitdiff
path: root/init.d/bootmisc.in
Commit message (Collapse)AuthorAge
* Fix Permission Denied on reading dmesg in an LXC containerFedja Beader2013-08-06
|
* Fix shebangs in services to point to the correct location of runscriptAndrew Gregory2013-02-23
| | | | | | | | SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* bootmisc: Skip cleaning /var/run or tmp directories if they are tmpfsWilliam Hubbs2013-02-16
| | | | | | Reported-by: walter@pratyeka.org X-Gentoo-Bug: 454338 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454338
* remove cruft from /run directoryWilliam Hubbs2013-01-31
| | | | | | | The /run directory is a mount point for a tmpfs and should not contain any files or directories. This cleans out the /run/openrc symlink and any other files which were incorrectly placed in /run. Thanks to Ian Stakenvicius for pointing out this solution.
* init.d/bootmisc: Another instance of the same pattern matching case.Robin H. Johnson2012-11-06
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* init.d/bootmisc: POSIX XSI shellism.Robin H. Johnson2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | In a pathname expansion, specifically single-character match, the pure POSIX specification uses '!' as the Negation character where a regular expression would normally be '^'. Regular expression: "a[^a]a" Pathname expansion pattern: "a[!a]a" Reference: IEEE Std 1003.1, 2004 Edition 2. Shell Command Language 2.13 Pattern Matching Notation 2.13.1 Patterns Matching a Single Character > The description of basic regular expression bracket expressions in the > Base Definitions volume of IEEE Std 1003.1-2001, Section 9.3.5, RE > Bracket Expression shall also apply to the pattern bracket expression, > except that the exclamation mark character ( '!' ) shall replace the > circumflex character ( '^' ) in its role in a "non-matching list" in > the regular expression notation. A bracket expression starting with an > unquoted circumflex character produces unspecified results. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Migrate /var/run and /var/lock to symlinksWilliam Hubbs2012-10-16
| | | | | | Now that we have full support for tmpfiles.d in OpenRC, we can migrate /var/run and /var/lock to symbolic links to /run and /run/lock respectively.
* Add Vim modelineChristian Ruppert2012-10-16
|
* Bring Back prefix supportWilliam Hubbs2012-07-26
| | | | | We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
* Remove prefix supportopenrc-0.9.9William Hubbs2012-02-21
| | | | | I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
* Use "checkpath -W" instead of dir_writable()Christian Ruppert2012-01-28
|
* bootmisc: stop deleting /etc/nologinMike Frysinger2012-01-26
| | | | | | | | | | | Baselayout-1.x used to have a DELAYLOGIN option where it would setup /etc/nologin automatically and then delete it later on. OpenRC did not keep that feature, and during the rewrites, ended up just punting it all the time. This isn't what we intended, so drop the rm. X-Gentoo-Bug: 400837 X-Gentoo-Bug-URL: https://bugs.gentoo.org/400837 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make checks for writable directory posix compliantWilliam Hubbs2012-01-22
| | | | | | Reported-by: Maxim Kammerer <mk@de.su> X-Gentoo-Bug: 398931 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=398931
* really disable /var/{lock,run} migration to /runWilliam Hubbs2012-01-05
| | | | | This needs to be disabled until we have tmpfiles.d support. The previous method did not disable it correctly.
* disable /run migration until we have /run in baselayoutWilliam Hubbs2011-12-29
|
* 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
* fix random typosMike Frysinger2011-10-16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make dmesg log optionalChristian Ruppert2011-09-27
| | | | | | Reported-by: Patrick <gentoo@feystorm.net> X-Gentoo-Bug: 384485 X-Gentoo-Bug-URL: https://bugs.gentoo.org/384485
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* do not timeout waiting for bootmisc to completeWilliam Hubbs2011-04-08
| | | | | | | | It is possible for bootmisc to take longer than 60 seconds to complete and services should not time out waiting for it. X-Gentoo-Bug: 360405 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360405
* bootmisc: clean up tmpdir cleaningMike Frysinger2011-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the `cd` into the $dir actually happened. This we don't have to worry about relative paths deleting stuff it shouldn't. This step shouldn't fail, but who knows, and better to be sane than to wipe out someone's valuables. When wiping, automatically fall back to a dedicated `find` if the initial `rm` failed on us. This should help with the speed issues related to the later `find`. Have the later find only search the top level allowing `rm` to walk the directory contents. This means that -xdev no longer applies, but since the earlier `rm` wasn't doing -xdev either and no one has complained thus far, let's assume it isn't an issue. Also convert to the -exec...+ form so that we don't have to worry about long argument lists, and add -- to the `rm` that was previously missing. In practice, this shouldn't matter as we've already deleted all those files, but better safe than sorry. When cleaning, since we've already done a `cd` into the $dir, no point in prefixing all the paths with $dir too. Go with the relative loving. Signed-off-by: Mike Frysinger <vapier@gentoo.org> X-Gentoo-Bug: 359831 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=359831
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Bug 349571 - SELinux fixes for bootmiscChris Richards2011-01-06
| | | | | | - delete the contents of the $RC_LIBEXECDIR/console directory but not the directory itself. - direct error output from the chmod call for /tmp to /dev/null.
* send error output from chattr command to /dev/nullWilliam Hubbs2010-11-26
| | | | This is for bug #346659.
* Allow cleaning up of pam_mktemp-based temporary directories.Diego Elio Pettenò2010-10-31
| | | | | This was blacklisted before, so the .private directories never had their content cleaned up, even if WIPE_TMP was set to yes.
* remove 'use hostname' bug 340991, Thanks DiegoJory A. Pratt2010-10-23
|
* Don't punt /var/log/wtmp if it exists, just create if it does not.Jan Psota2009-11-10
| | | | Fixes Gentoo #289849.
* Only delete /etc/nologin if we can write to itRoy Marples2009-07-09
|
* We should use -feature instead of nofeature.Roy Marples2009-07-01
| | | | | | This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
* Ensure that tmp dirs are +rw as well as +t.Roy Marples2009-06-13
|
* Linux FHS requires /var/lib/miscRoy Marples2009-06-08
| | | | Stop fuser from being chatty
* 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.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Style.Roy Marples2009-04-27
|
* Not all systems have the utmp groupRoy Marples2009-04-18
|
* Typo, thanks to Matthias Schwarzott, #166.Roy Marples2009-04-17
|
* Improve utmp handlingRoy Marples2009-04-16
|
* Simplfy rm matching pattern, thanks to cypherpunks@mailinator.comRoy Marples2009-04-12
|
* Change wipe_tmp_dirs to clean_tmp_dirs so user understands meaning better, #153Roy Marples2009-02-23
|
* Only create the reboot file if rebooting.Roy Marples2009-02-10
|
* Create /reboot if running inside OpenVZ, #138.Roy Marples2009-02-10
| | | | | This should be fine as vpsreboot should only restart a stopped container.
* Fix fuser on BSD platforms.Roy Marples2008-10-15
|
* Fix utmp permissions, Gentoo #240437.Roy Marples2008-10-08
|
* Clean stale sockets.Roy Marples2008-10-01
|
* Add the devdb init script.Roy Marples2008-05-12
|
* Busybox find now works with -exec correctly, so remove our nasty hack.Roy Marples2008-04-30
|
* More ltsp fixes.Roy Marples2008-04-09
|
* Fix netmout for nfsRoy Marples2008-04-08
|
* Add rc-service and update all softlevel refs to runlevel.Roy Marples2008-03-19
|
* Support pam_mktemp.Roy Marples2008-03-18
|