Based on 0fdeb6e011dfdb17636c81e2d7e0d632186359ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= 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