We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ba217 commit a13438dCopy full SHA for a13438d
1 file changed
src/service.c
@@ -3217,6 +3217,17 @@ void service_runtask_clean(void)
3217
continue;
3218
}
3219
3220
+ /*
3221
+ * On reload (SIGHUP), only remain tasks (handled above) should
3222
+ * have their once flag cleared and be restarted. Regular run/task
3223
+ * that already ran in this runlevel must not run again.
3224
+ *
3225
+ * On runlevel change, continue below to reset once flag so tasks
3226
+ * can run again in the new runlevel.
3227
+ */
3228
+ if (sm_in_reload())
3229
+ continue;
3230
+
3231
/* run/task declared with <!> */
3232
if (svc->sighup)
3233
svc->once = 1;
0 commit comments