Davin McCall
|
be0969728d
Correct restart delay check (<= instead of <).
|
7 years ago |
Davin McCall
|
c7f539928a
Improve handling of pid-file reading.
|
7 years ago |
Davin McCall
|
55bb0a7e2a
Remove unneeded function parameter.
|
7 years ago |
Davin McCall
|
fd41b5751e
If a service stops and won't restart, release explicit activation.
|
7 years ago |
Davin McCall
|
7124efe64d
Refactoring: don't pass list via pointer.
|
7 years ago |
Davin McCall
|
2bc8f309cb
Refactoring: split loading service from directory into seperate class
|
7 years ago |
Davin McCall
|
a65509aebe
Rename ServiceState to service_state_t.
|
7 years ago |
Davin McCall
|
8567f3cfbf
Rename ServiceIoWatcher to exec_status_pipe_watcher.
|
7 years ago |
Davin McCall
|
772d6c139c
Increase priority of service child status watchers.
|
7 years ago |
Davin McCall
|
101fe255ff
Signal a service process via its process group rather than individually.
|
7 years ago |
Davin McCall
|
fff223cfc2
Rename various classes/functions for consistency.
|
7 years ago |
Davin McCall
|
df777d1fdf
Rename ServiceRecord to service_record for consistency
|
7 years ago |
Davin McCall
|
faa441bfc3
Use time arithmetic functions from Dasynq (time_val).
|
7 years ago |
Davin McCall
|
41ed5668ec
Fix issues with restart counting and start failure handling.
|
7 years ago |
Davin McCall
|
4741fb0e5b
On interrupted start, unlink from console wait queue.
|
7 years ago |
Davin McCall
|
a15419f72c
Fix potential issue of double-queueing for console breakage.
|
7 years ago |
Davin McCall
|
d9e61e1bf6
Service logic simplification/cleanup.
|
7 years ago |
Davin McCall
|
e23e73f1d9
service: only force stop dependents if necessary.
|
7 years ago |
Davin McCall
|
ddfd9e5611
Enable SIGQUIT in child processes.
|
7 years ago |
Davin McCall
|
71fabf0ddb
Allow service start to be interrupted when waiting for restart timer.
|
7 years ago |
Davin McCall
|
47314dac57
Make service restart delay configurable (restart-delay servie setting).
|
7 years ago |
Davin McCall
|
b0a0a7c9e4
Add restart-limit-count service setting.
|
7 years ago |
Davin McCall
|
d94a1af9f1
Make restart check interval configurable.
|
7 years ago |
Davin McCall
|
8827ec08f8
Limit number of restarts within an interval
|
7 years ago |
Davin McCall
|
8ad2e8356f
Fix: grant console correctly
|
7 years ago |
Davin McCall
|
daacd062b1
Separate "runs-on-console" into runs-on- and starts-on- options.
|
7 years ago |
Davin McCall
|
5f43c356b1
Use restart timer also for non-smooth-recovery restarts.
|
7 years ago |
Davin McCall
|
e327633a36
Correct calculation of restart timeout, and up timeout to 200ms.
|
7 years ago |
Davin McCall
|
4bd3733ed1
Minor refactoring / code documentation.
|
7 years ago |
Davin McCall
|
707a672dfb
Add a restart timer to limit restart rate.
|
7 years ago |