Leave a note on singleshot After= behavior

"Actually oneshot is also a bit special and that is where RemainAfterExit comes in. For oneshot, systemd waits for the process to exit before it starts any follow-up units (and with multiple ExecStarts I assume it waits for all of them). So that automatically leads to the scheme in berbae's last post. However, with RemainAfterExit, the unit remains active even though the process has exited, so this makes it look more like "normal" service with "
This commit is contained in:
Girish Ramakrishnan
2015-09-07 22:37:20 -07:00
parent 47b662be09
commit a5d122c0b3
+1
View File
@@ -200,6 +200,7 @@ EOF
systemctl enable iptables-restore
# Allocate swap files
# https://bbs.archlinux.org/viewtopic.php?id=194792 ensures this runs after do-resize.service
echo "==== Install box-setup systemd script ===="
cat > /etc/systemd/system/box-setup.service <<EOF
[Unit]