chiark / gitweb /
systemctl: introduce reset-maintenance command
[elogind.git] / src / unit.c
index 348d139586950637438d9ff58c5eb1a3b1af900d..5807e4f4d1cbd2432ab48e07d829a363641a9984 100644 (file)
@@ -2071,6 +2071,13 @@ bool unit_need_daemon_reload(Unit *u) {
                 timespec_load(&st.st_mtim) != u->meta.fragment_mtime;
 }
 
+void unit_reset_maintenance(Unit *u) {
+        assert(u);
+
+        if (UNIT_VTABLE(u)->reset_maintenance)
+                UNIT_VTABLE(u)->reset_maintenance(u);
+}
+
 static const char* const unit_type_table[_UNIT_TYPE_MAX] = {
         [UNIT_SERVICE] = "service",
         [UNIT_TIMER] = "timer",