A process which fails to start with a timeout should count as a start
failure. Therefore, remove explicit activation in this case (and thereby
prevent the service from restarting).
else if (pid != -1) {
// Starting, start timed out.
stop_dependents();
+ if (start_explicit) {
+ start_explicit = false;
+ release();
+ }
interrupt_start();
}
else {
inline int kill(pid_t pid, int sig)
{
- // No proper mock implemented yet:
- std::cout << "(kill; aborting)" << std::endl;
- abort();
+ // No proper mock implemented yet, just return success for now:
return 0;
}