From 0fdeb6e011dfdb17636c81e2d7e0d632186359ce Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 28 Jun 2014 00:06:30 -0400 Subject: 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 a/units/basic.target b/units/basic.target index d7c68f4e2c..b890d48bbc 100644 --- a/units/basic.target +++ b/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 a/units/sysinit.target b/units/sysinit.target index 8f4fb8f5c1..ec33503330 100644 --- a/units/sysinit.target +++ b/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 diff --git a/units/systemd-tmpfiles-setup.service.in b/units/systemd-tmpfiles-setup.service.in index d3c6da88c4..72ab083d54 100644 --- a/units/systemd-tmpfiles-setup.service.in +++ b/units/systemd-tmpfiles-setup.service.in @@ -12,7 +12,6 @@ DefaultDependencies=no Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target systemd-sysusers.service Before=sysinit.target shutdown.target -RefuseManualStart=yes RefuseManualStop=yes [Service] diff --git a/units/user/basic.target b/units/user/basic.target index b74d13c29c..afc6e9360a 100644 --- a/units/user/basic.target +++ b/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 -- cgit v1.2.3-54-g00ecf