]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/unit.h
core: add IgnoreOnSoftReboot= unit option
[thirdparty/systemd.git] / src / core / unit.h
index c0710299a54a964b68fb9284b97049876c8ddaa6..6aa8b82ed87ffc3e72818bbbfa2556066a50c2e9 100644 (file)
@@ -450,6 +450,9 @@ typedef struct Unit {
         /* Create default dependencies */
         bool default_dependencies;
 
+        /* Configure so that the unit survives a soft reboot without stopping/starting. */
+        bool ignore_on_soft_reboot;
+
         /* Refuse manual starting, allow starting only indirectly via dependency. */
         bool refuse_manual_start;
 
@@ -852,6 +855,8 @@ int unit_add_dependency_by_name(Unit *u, UnitDependency d, const char *name, boo
 int unit_add_two_dependencies_by_name(Unit *u, UnitDependency d, UnitDependency e, const char *name, bool add_reference, UnitDependencyMask mask);
 
 int unit_add_exec_dependencies(Unit *u, ExecContext *c);
+/* Helper for IgnoreOnSoftReboot units that need to survive soft-reboot.target but not others */
+int unit_add_dependencies_on_real_shutdown_targets(Unit *u);
 
 int unit_choose_id(Unit *u, const char *name);
 int unit_set_description(Unit *u, const char *description);