From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/openrc:master commit in: runlevels/, init.d/
Date: Wed, 23 Nov 2011 13:36:46 +0000 (UTC) [thread overview]
Message-ID: <17a1529416441391e3b55cd22e5584b530424932.WilliamH@gentoo> (raw)
commit: 17a1529416441391e3b55cd22e5584b530424932
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 14:18:53 2011 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Nov 23 13:26:05 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=17a15294
Migrate /var/lock and /var/run to /run for linux systems
---
init.d/Makefile | 2 +-
init.d/migrate-run.in | 28 ++++++++++++++++++++++++++++
runlevels/Makefile | 2 +-
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/init.d/Makefile b/init.d/Makefile
index 8351f3c..c1eb647 100644
--- a/init.d/Makefile
+++ b/init.d/Makefile
@@ -22,7 +22,7 @@ SRCS-FreeBSD+= adjkerntz.in devd.in dumpon.in ipfw.in mixer.in nscd.in \
NET_LO-Linux= net.lo
SRCS-Linux= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in \
killprocs.in modules.in mount-ro.in mtab.in numlock.in \
- procfs.in sysfs.in termencoding.in
+ procfs.in sysfs.in termencoding.in migrate-run.in
NET_LO-NetBSD= net.lo0
# Generic BSD scripts
diff --git a/init.d/migrate-run.in b/init.d/migrate-run.in
new file mode 100644
index 0000000..544acb0
--- /dev/null
+++ b/init.d/migrate-run.in
@@ -0,0 +1,28 @@
+#!@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()
+{
+ return 0
+}
+
+stop()
+{
+ if [ -d /run -a ! -L /var/lock -a ! -L /var/run ]; then
+ ebegin "Migrating /var/lock and /var/run to /run"
+ rm -rf /var/lock /var/run
+ ln -s /var/lock /run/lock
+ ln -s /var/run /run
+ eend 0
+ fi
+ return 0
+}
diff --git a/runlevels/Makefile b/runlevels/Makefile
index c1a9f09..1f599a9 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -26,7 +26,7 @@ BOOT-FreeBSD= hostid net.lo0 newsyslog savecore syslogd
# FreeBSD specific stuff
BOOT-FreeBSD+= adjkerntz dumpon syscons
-BOOT-Linux= hwclock keymaps modules mtab net.lo procfs termencoding
+BOOT-Linux= hwclock keymaps modules mtab net.lo procfs termencoding migrate-run
SHUTDOWN-Linux= killprocs mount-ro
SYSINIT-Linux= devfs dmesg
next reply other threads:[~2011-11-23 13:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 13:36 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-04 23:32 [gentoo-commits] proj/openrc:master commit in: runlevels/, init.d/ William Hubbs
2012-02-13 14:46 William Hubbs
2013-04-08 17:50 William Hubbs
2013-07-25 19:04 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17a1529416441391e3b55cd22e5584b530424932.WilliamH@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox