From f1d171dc69878d835a4f3b70cb646ce971fb50c85f7c9ef8ff707b6f9a427444 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 20 Nov 2011 06:48:53 +0000 Subject: [PATCH] Accepting request 92390 from home:jnweiger:branches:Base:System - mkdir /var/run/*screen both immediatly and via systemd. OBS-URL: https://build.opensuse.org/request/show/92390 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=24 --- screen.changes | 5 +++++ screen.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/screen.changes b/screen.changes index d210ad6..8d49057 100644 --- a/screen.changes +++ b/screen.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 18 13:09:57 UTC 2011 - jw@suse.com + +- mkdir /var/run/*screen both immediatly and via systemd. + ------------------------------------------------------------------- Mon Sep 19 14:00:10 UTC 2011 - trenn@suse.de diff --git a/screen.spec b/screen.spec index 37176a1..f206e63 100644 --- a/screen.spec +++ b/screen.spec @@ -31,7 +31,7 @@ Group: System/Console PreReq: %install_info_prereq AutoReqProv: on Version: 4.0.3 -Release: 17 +Release: 19 Summary: A program to allow multiple screens on a VT100/ANSI Terminal Source: %{name}-%{version}.tar.bz2 Source1: screen.conf @@ -99,7 +99,7 @@ install -m 644 %SOURCE1 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d %dir /usr/lib/tmpfiles.d /usr/lib/tmpfiles.d/screen.conf /usr/share/screen/utf8encodings -# Created via aaa_base on system boot +# Created via aaa_base or systemd on system boot %ghost %dir /var/run/screens %ghost %dir /var/run/uscreens %doc %{_infodir}/screen.info*.gz @@ -108,6 +108,11 @@ install -m 644 %SOURCE1 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +# Create our dirs immediatly, after a manual package install. +# After a reboot systemd/aaa_base will take care. +test -d /var/run/screens || mkdir -m 755 /var/run/screens +test -d /var/run/uscreens || mkdir -m 1777 /var/run/uscreens + %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz