Skip to content

Commit a13438d

Browse files
committed
more fixups
1 parent 31ba217 commit a13438d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/service.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,6 +3217,17 @@ void service_runtask_clean(void)
32173217
continue;
32183218
}
32193219

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+
32203231
/* run/task declared with <!> */
32213232
if (svc->sighup)
32223233
svc->once = 1;

0 commit comments

Comments
 (0)