chiark / gitweb /
unit: add new abstracted maintenance state for units
[elogind.git] / src / swap.c
index 663c568961b38519bf87c6b8c119da5c6296a37c..e2afcc02eb4933c6b639c7062807d619d6dd63dc 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_INACTIVE_MAINTENANCE
 };
 
 static void swap_init(Unit *u) {