Age | Commit message (Collapse) | Author | Files |
|
|
|
* src/com_stop.c (pidlist_wait): New function.
(com_stop): Send the genrc_signal_stop first. If any processes remain
after timeout, send SIGKILL. Use genrc_kill_mode to decide how to
send the signals.
* src/genrc.8: Document the --kill-mode option.
* src/genrc.c: New option -k, --kill-mode. New controlling environment
variable GENRC_KILL_MODE.
(genrc_kill_mode): New global.
(main): Set genrc_kill_mode.
(help_msg): Document missing options.
* src/genrc.h (pidlist_kill): Change signature.
(genrc_kill_mode): New enum and extern.
* src/pid_ps.c (pid_ps_get): Pass the -w option to ps.
* src/sentinel.c (log_buffer_read): Return status code.
(wait_loop): Close the descriptor if log_buffer_read returns -1.
(start_command): Run the command as session leader.
* configure.ac: Version 1.3.90.
* NEWS: Document changes.
* README: Update.
|
|
* src/genrc.c: New options --log-facility and --log-tag.
(genrc_openlog): New function.
* src/genrc.h (genrc_openlog): New proto.
* src/com_start.c (spawn): Use genrc_openlog.
* src/sentinel.c (wait_loop): Use genrc_openlog.
* NEWS: Update.
* src/genrc.8: Update.
|
|
* .gitmodules: New module: runcap
* Makefile.am: Build runcap
* configure.ac: Setup runcap
* src/Makefile.am: Add runcap dependencies.
* src/com_start.c (spawn): New function.
(com_start): Use spawn.
* src/sentinel.c (start_command): Use spawn.
* src/genrc.8: Document new options: --shell, --exec, --verbose.
* src/genrc.c (genrc_shell): New global.
(longopts): New options: --shell (-s), --exec (-e).
(main): Setup shortopts from longopts.
* src/genrc.h (genrc_shell): New global.
(spawn): New proto.
* src/runas.c: Set HOME and USER environment variables.
|
|
* Makefile.am: Create the ChangeLog file from git log.
* configure.ac: Request git2chg
* src/com_start.c: Use sigaction instead of signal.
* src/genrc.8: Document new options.
* src/genrc.c: New options --restart-on-exit and --restart-on-signal.
* src/genrc.h (str_to_sig, str_to_int): New prototypes.
(add_restart_condition): New prototype.
* src/sentinel.c (restart_on, add_restart_condition):
(check_failure_rate): New functions.
(wait_loop): Return if restart is requested.
(sentinel): Restart the program if needed.
|
|
|
|
|
|
|
|
|
|
|