Davin McCall
|
ad07c4ca98
Implement "skippable" option for scripted services.
|
6 years ago |
Davin McCall
|
12b59dd769
Avoid logging service stop after failure to start.
|
6 years ago |
Davin McCall
|
70f9cd5602
Fix acquire/release counting in some sitations.
|
6 years ago |
Davin McCall
|
a7a08b1966
Fix issue with incorrect acquisition counts with waits_for dependencies.
|
6 years ago |
Davin McCall
|
1ccaa09a43
service stopped(): release console if have_console is set.
|
6 years ago |
Davin McCall
|
00aa215fb4
Handle startup timer expiry using failed_to_start.
|
6 years ago |
Davin McCall
|
16781b1333
Make sure listeners are notified of start cancellation.
|
6 years ago |
Davin McCall
|
531773ce4c
When stopping dependents, also release waits_for/soft dependencies.
|
6 years ago |
Davin McCall
|
93794c9e4a
Fix: stop milestone dependency before started.
|
6 years ago |
Davin McCall
|
14b9848638
Add another test and a fix to make it pass.
|
6 years ago |
Davin McCall
|
20ddac7489
Move processing of start pin in do_stop.
|
6 years ago |
Davin McCall
|
fe725b9ca0
Add comment.
|
6 years ago |
Davin McCall
|
7778fada82
Add a new test.
|
6 years ago |
Davin McCall
|
93b5278a34
Don't bypass queue cycle in emergency_stop.
|
6 years ago |
Davin McCall
|
99faa8ca38
Mock tcsetpgrp() and getpgrp() for tests.
|
6 years ago |
Davin McCall
|
0725181f07
Move some #include's around to fix build issue.
|
6 years ago |
Davin McCall
|
f8693a9e47
Move some data/functions from service_record to base_process_service.
|
6 years ago |
Davin McCall
|
9276337bf6
Re-work console acquisition/release.
|
6 years ago |
Davin McCall
|
0747492dfb
service_record: add boolean issue_stop parameter to release function.
|
6 years ago |
Davin McCall
|
ca29440519
Move 'run_child_proc' function into a separate source file.
|
6 years ago |
Davin McCall
|
88ce13a9be
Pull some commonly occurring declarations into a new header file.
|
6 years ago |
Davin McCall
|
9cb0528e4d
Split service.cc into multiple files.
|
6 years ago |
Davin McCall
|
0ca513a875
Fix issue with start timeouts not correctly stopping dependents.
|
6 years ago |
Davin McCall
|
0ffc42b97d
Big rename/namespace cleanup.
|
6 years ago |
Davin McCall
|
e984ea0250
Minor refactoring/code documentation.
|
6 years ago |
Davin McCall
|
fb99bdf64e
Properly handle scripted service start interrupt.
|
6 years ago |
Davin McCall
|
46eef66b1b
Clean up warning in process_restart_timer.
|
6 years ago |
Davin McCall
|
9e8672e37b
Rename service_type (type) to service_type_t.
|
6 years ago |
Davin McCall
|
bd2fc3e436
Correctly handle start timeout of 0 (i.e. no timeout).
|
6 years ago |
Davin McCall
|
632b9671f7
Implement start timeout for services, default of 60 seconds.
|
6 years ago |