forked from pool/systemd
0e288fc9c5
- Add upstream patch 0001-machine-don-t-return-uninitialized-variable.patch - Port and add upstream patch 0002-vconsole-setup-run-setfont-before-loadkeys.patch - Rename 0001-udev-net_setup_link-add-a-bit-more-logging.patch to 1048-udev-net_setup_link-add-a-bit-more-logging.patch - Port and add upstream patches 0001-udev-net_setup_link-add-a-bit-more-logging.patch 0003-namespace-make-sure-tmp-var-tmp-and-dev-are-writable.patch 0002-namespace-fix-uninitialized-memory-access.patch - Add upstream patches 0001-architecture-Add-tilegx.patch 0002-architecture-Add-cris.patch 0003-arch-add-crisv32-to-uname-check.patch 0004-architecture-remove-cris-from-uname-list.patch - Add upstream patches 0006-hwdb-update.patch 0007-hwdb-Update-database-of-Bluetooth-company-identifier.patch - Add upstream patches 0001-parse_uid-return-ENXIO-for-1-uids.patch 0002-util-when-unescaping-strings-don-t-allow-smuggling-i.patch 0003-localed-consider-an-unset-model-as-a-wildcard.patch 0004-sd-bus-when-an-event-loop-terminates-explicitly-clos.patch OBS-URL: https://build.opensuse.org/request/show/239780 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=191
66 lines
2.5 KiB
Diff
66 lines
2.5 KiB
Diff
Based on 0fdeb6e011dfdb17636c81e2d7e0d632186359ce Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Sat, 28 Jun 2014 00:06:30 -0400
|
|
Subject: [PATCH] units: remove RefuseManualStart from units which are always
|
|
around
|
|
|
|
In a normal running system, non-passive targets and units used during
|
|
early bootup are always started. So refusing "manual start" for them
|
|
doesn't make any difference, because a "start" command doesn't cause
|
|
any action.
|
|
|
|
In early boot however, the administrator might want to start on
|
|
of those targets or services by hand. We shouldn't interfere with that.
|
|
|
|
Note: in case of systemd-tmpfiles-setup.service, really running the
|
|
unit after system is up would break the system. So e.g. restarting
|
|
should not be allowed. The unit has "RefuseManualStop=yes", which
|
|
prevents restart too.
|
|
---
|
|
units/basic.target | 1 -
|
|
units/sysinit.target | 1 -
|
|
units/systemd-tmpfiles-setup.service.in | 1 -
|
|
units/user/basic.target | 1 -
|
|
4 files changed, 4 deletions(-)
|
|
|
|
diff --git units/basic.target units/basic.target
|
|
index d7c68f4..b890d48 100644
|
|
--- units/basic.target
|
|
+++ units/basic.target
|
|
@@ -11,4 +11,3 @@ Documentation=man:systemd.special(7)
|
|
Requires=sysinit.target
|
|
Wants=sockets.target timers.target paths.target slices.target
|
|
After=sysinit.target sockets.target timers.target paths.target slices.target
|
|
-RefuseManualStart=yes
|
|
diff --git units/sysinit.target units/sysinit.target
|
|
index 8f4fb8f..ec33503 100644
|
|
--- units/sysinit.target
|
|
+++ units/sysinit.target
|
|
@@ -11,4 +11,3 @@ Documentation=man:systemd.special(7)
|
|
Conflicts=emergency.service emergency.target
|
|
Wants=local-fs.target swap.target
|
|
After=local-fs.target swap.target emergency.service emergency.target
|
|
-RefuseManualStart=yes
|
|
--- units/systemd-tmpfiles-setup.service.in
|
|
+++ units/systemd-tmpfiles-setup.service.in 2014-07-01 12:17:48.154235348 +0000
|
|
@@ -18,7 +18,6 @@ ConditionDirectoryNotEmpty=|/lib/tmpfile
|
|
ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d
|
|
ConditionDirectoryNotEmpty=|/etc/tmpfiles.d
|
|
ConditionDirectoryNotEmpty=|/run/tmpfiles.d
|
|
-RefuseManualStart=yes
|
|
RefuseManualStop=yes
|
|
|
|
[Service]
|
|
diff --git units/user/basic.target units/user/basic.target
|
|
index b74d13c..afc6e93 100644
|
|
--- units/user/basic.target
|
|
+++ units/user/basic.target
|
|
@@ -10,4 +10,3 @@ Description=Basic System
|
|
Documentation=man:systemd.special(7)
|
|
Wants=sockets.target timers.target paths.target
|
|
After=sockets.target timers.target paths.target
|
|
-RefuseManualStart=yes
|
|
--
|
|
1.7.9.2
|
|
|