chiark / gitweb /
snapshot: ensure that snapshots cannot be created unless with create_snapshot
[elogind.git] / src / swap.c
index 663c568961b38519bf87c6b8c119da5c6296a37c..2e3e995c3e6c6386185fedbea564b47dabf671ec 100644 (file)
@@ -38,7 +38,7 @@
 static const UnitActiveState state_translation_table[_SWAP_STATE_MAX] = {
         [SWAP_DEAD] = UNIT_INACTIVE,
         [SWAP_ACTIVE] = UNIT_ACTIVE,
-        [SWAP_MAINTENANCE] = UNIT_INACTIVE
+        [SWAP_MAINTENANCE] = UNIT_MAINTENANCE
 };
 
 static void swap_init(Unit *u) {