From bfbae11482eb7b48e4bbda7d196817a1e26c3179 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Feb 2012 10:27:08 +0100 Subject: [PATCH] systemd: added local-d.service to start local scripts in /etc/local.d, disable plymouth support. --- srcpkgs/systemd/files/local-d.service | 11 +++++++++++ srcpkgs/systemd/template | 13 +++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/systemd/files/local-d.service diff --git a/srcpkgs/systemd/files/local-d.service b/srcpkgs/systemd/files/local-d.service new file mode 100644 index 00000000000..3ac975e62c0 --- /dev/null +++ b/srcpkgs/systemd/files/local-d.service @@ -0,0 +1,11 @@ +[Unit] +Description=/etc/local.d execution + +[Service] +Type=oneshot +ExecStart=/usr/bin/run-parts /etc/local.d +TimeoutSec=0 +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index 8609a44a4db..4439cbc0ad7 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,11 +1,12 @@ # Template file for 'systemd' pkgname=systemd version=42 +revision=1 distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz" build_style=gnu-configure configure_args="--with-distro=other --with-rootprefix= --with-pamlibdir=/lib/security --disable-selinux --disable-tcpwrap ---with-sysvinit-path= --with-sysvrcd-path= --disable-audit --enable-plymouth" +--with-sysvinit-path= --with-sysvrcd-path= --disable-audit" short_desc="A system and service manager for Linux" maintainer="Juan RP " homepage="http://www.freedesktop.org/wiki/Software/systemd" @@ -33,9 +34,12 @@ conf_files=" /etc/systemd/systemd-logind.conf" # Required by systemd-loginctl enable-linger. -make_dirs="/var/lib/systemd 0755 root root" +make_dirs=" +/etc/local.d 0755 root root +/var/lib/systemd 0755 root root" Add_dependency run dbus +Add_dependency run run-parts Add_dependency build pkg-config Add_dependency build intltool @@ -93,4 +97,9 @@ post_install() { sed -i -e "s|/sbin/sulogin|/bin/sh|" \ ${DESTDIR}/lib/systemd/system/${f}.service done + # Install and enable local-d.service for multi-user.target + # by default. + vinstall ${FILESDIR}/local-d.service 644 lib/systemd/system + ln -sf /lib/systemd/system/local-d.service \ + ${DESTDIR}/lib/systemd/system/multi-user.target.wants/local-d.service }