aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/system/rhel-configure.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/system/rhel-configure.service')
-rw-r--r--systemd/system/rhel-configure.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/system/rhel-configure.service b/systemd/system/rhel-configure.service
new file mode 100644
index 00000000..7ee34ceb
--- /dev/null
+++ b/systemd/system/rhel-configure.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Reconfigure the system on administrator request
+DefaultDependencies=no
+Conflicts=shutdown.target
+Before=multi-user.target shutdown.target
+After=local-fs.target
+ConditionPathExists=/.unconfigured
+
+[Service]
+ExecStart=/lib/systemd/rhel-configure
+ExecStopPost=/bin/rm -f /.unconfigured
+Type=oneshot
+TimeoutSec=0
+StandardInput=tty
+RemainAfterExit=yes