aboutsummaryrefslogtreecommitdiffstats
path: root/meta-systemd/recipes-core/systemd/systemd
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-07-21 08:05:07 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-23 12:47:04 +0200
commit3c488a49b512afd25c4b696e7b688af516dc6513 (patch)
tree5541bce24670723da310222fe2a0ae8a891d1c00 /meta-systemd/recipes-core/systemd/systemd
parenta2f5ec73d665006251c2d9756500df018ff3b403 (diff)
downloadmeta-openembedded-contrib-3c488a49b512afd25c4b696e7b688af516dc6513.tar.gz
meta-openembedded-contrib-3c488a49b512afd25c4b696e7b688af516dc6513.tar.bz2
meta-openembedded-contrib-3c488a49b512afd25c4b696e7b688af516dc6513.zip
systemd: cleanup /var/run on boot and create /var/run/utmp
* Angstrom uses /var/run cleanup because: Some apps (e.g. avahi-daemon) to clean up their old-style pid files and fail to start every other boot. Se we let systemd clean it on boot. Which seems general enough, so lets move var-run.conf from base-files.bbappend to systemd recipe. * /var/run/utmp was created by volatiles before, but without sysvinit installed systemd-update-utmp-runlevel.service fails to start without this file Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-systemd/recipes-core/systemd/systemd')
-rw-r--r--meta-systemd/recipes-core/systemd/systemd/var-run.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-systemd/recipes-core/systemd/systemd/var-run.conf b/meta-systemd/recipes-core/systemd/systemd/var-run.conf
new file mode 100644
index 0000000000..c2c18e2b99
--- /dev/null
+++ b/meta-systemd/recipes-core/systemd/systemd/var-run.conf
@@ -0,0 +1,4 @@
+# empty /var/run
+R /var/run/* - - - - -
+# systemd-update-utmp-runlevel.service fails to start without this
+f /var/run/utmp 0644 root root - -