diff options
author | William Hubbs <williamh@gentoo.org> | 2011-11-30 10:00:44 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-12-03 12:46:52 -0600 |
commit | 5adb3930c7a875153c0b817b5c21596a3faaac29 (patch) | |
tree | 6afd4ee806cbc2eb92fa00c3a93ab55cbb421f2a /init.d/migrate-run.in | |
parent | b628481701d1f240ff8b2411dc041db332578a8c (diff) |
Integrate migrate-run into bootmisc
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
Diffstat (limited to 'init.d/migrate-run.in')
-rw-r--r-- | init.d/migrate-run.in | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/init.d/migrate-run.in b/init.d/migrate-run.in deleted file mode 100644 index 02a884df..00000000 --- a/init.d/migrate-run.in +++ /dev/null @@ -1,37 +0,0 @@ -#!@PREFIX@/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Released under the 2-clause BSD license. - -description="Migrate /var/run and /var/lock to /run" - -depend() -{ - before * - after localmount -} - -start() -{ - einfo "starting $RC_SVCNAME" - return 0 -} - -stop() -{ - einfo "completing /var/run and /var/lock migration." - if [ -d /run ]; then - if [ ! -L /var/lock ]; then - ebegin "Migrating /var/lock to /run" - rm -rf /var/lock - ln -s /run/lock /var/lock - eend 0 - fi - if [ ! -L /var/run ]; then - ebegin "Migrating /var/run to /run" - rm -rf /var/run - ln -s /run /var/run - eend 0 - fi - fi - return 0 -} |