chiark / gitweb /
service: save/restore status text string
[elogind.git] / src / snapshot.c
index fe8a43dd3a396d7a5bb1b8dfa14aab178438801b..e1583384cd8baac11fa0fe5713158ffdbf32a7bf 100644 (file)
@@ -56,7 +56,7 @@ static int snapshot_load(Unit *u) {
 
         /* Make sure that only snapshots created via snapshot_create()
          * can be loaded */
-        if (!s->by_snapshot_create)
+        if (!s->by_snapshot_create && s->meta.manager->n_deserializing <= 0)
                 return -ENOENT;
 
         u->meta.load_state = UNIT_LOADED;