From 36b4a7ba555540edb7648e0f97019280b4ac38de Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 8 Nov 2015 14:12:54 +0100 Subject: Remove snapshot unit type Snapshots were never useful or used for anything. Many systemd developers that I spoke to at systemd.conf2015, didn't even know they existed, so it is fairly safe to assume that this type can be deleted without harm. The fundamental problem with snapshots is that the state of the system is dynamic, devices come and go, users log in and out, timers fire... and restoring all units to some state from the past would "undo" those changes, which isn't really possible. Tested by creating a snapshot, running the new binary, and checking that the transition did not cause errors, and the snapshot is gone, and snapshots cannot be created anymore. New systemctl says: Unknown operation snapshot. Old systemctl says: Failed to create snapshot: Support for snapshots has been removed. IgnoreOnSnaphost settings are warned about and ignored: Support for option IgnoreOnSnapshot= has been removed and it is ignored http://lists.freedesktop.org/archives/systemd-devel/2015-November/034872.html --- man/systemd.unit.xml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'man/systemd.unit.xml') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 5c74318fec..caba7ea69d 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -60,7 +60,6 @@ target.target, path.path, timer.timer, - snapshot.snapshot, slice.slice, scope.scope @@ -90,7 +89,7 @@ swap file or partition, a start-up target, a watched file system path, a timer controlled and supervised by systemd1, - a temporary system state snapshot, a resource management slice or + a resource management slice or a group of externally created processes. The syntax is inspired by XDG @@ -115,8 +114,7 @@ systemd.target5, systemd.path5, systemd.timer5, - systemd.snapshot5. - systemd.slice5. + systemd.slice5, systemd.scope5. @@ -651,16 +649,6 @@ . - - IgnoreOnSnapshot= - - Takes a boolean argument. If - , this unit will not be included in - snapshots. Defaults to for device and - snapshot units, for the - others. - - StopWhenUnneeded= @@ -1431,7 +1419,6 @@ PrivateTmp=yes systemd.target5, systemd.path5, systemd.timer5, - systemd.snapshot5, systemd.scope5, systemd.slice5, systemd.time7, -- cgit v1.2.3-54-g00ecf