diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-08-07 09:48:44 +0200 |
---|---|---|
committer | Eric Bénard <eric@eukrea.com> | 2012-08-13 10:39:20 +0200 |
commit | a4c4a48148368c884dbc57d50195af3806c4aa37 (patch) | |
tree | 23c24bc5a539b211b56765319f23d3743194f6e7 /meta-oe/recipes-core/systemd/systemd/var-run.conf | |
parent | 369bd8bdda774c660756001835737104833389fe (diff) | |
download | meta-openembedded-a4c4a48148368c884dbc57d50195af3806c4aa37.tar.gz |
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: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd/var-run.conf')
-rw-r--r-- | meta-oe/recipes-core/systemd/systemd/var-run.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd/var-run.conf b/meta-oe/recipes-core/systemd/systemd/var-run.conf new file mode 100644 index 000000000..c2c18e2b9 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd/var-run.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | # empty /var/run | ||
2 | R /var/run/* - - - - - | ||
3 | # systemd-update-utmp-runlevel.service fails to start without this | ||
4 | f /var/run/utmp 0644 root root - - | ||