aboutsummaryrefslogtreecommitdiff
path: root/src/genrc.h
AgeCommit message (Collapse)AuthorFiles
2022-05-13Import proctitle API from mailfromd.Sergey Poznyakoff1
2022-03-26New option --kill-mode (-k)Sergey Poznyakoff1
* 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.
2020-09-09Configurable syslog facility and tag.Sergey Poznyakoff1
* 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.
2019-07-11New options to select the shell binary and to run the command directlySergey Poznyakoff1
* .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.
2018-05-20Sentinel mode: restart the program on certain conditionsSergey Poznyakoff1
* 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.
2018-05-17Implement the --user and --group options.Sergey Poznyakoff1
2018-05-17New option: --verboseSergey Poznyakoff1
2018-05-15Version 1.0Sergey Poznyakoff1
2018-05-15Add documentation.Sergey Poznyakoff1
2018-05-15Initial commitSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.