-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
When service is planned to be stopped, pebble sends a SIGTERM signal,
this is visible on two places (if I'm not mistaken)
| err := syscall.Kill(-s.cmd.Process.Pid, syscall.SIGTERM) |
| err := syscall.Kill(-s.cmd.Process.Pid, syscall.SIGTERM) |
this is perfectly acceptable, but, would it be possible to customize this ?
for example setup could look something like this:
services:
my-app:
override: replace
command: /path/my-command.sh
startup: enabled
on-success: ignore
on-failure: restart
kill-delay: 30s
stop-signal: SIGUSR1
if stop-signal is defined, that signal is used for stop, otherwise, SIGTERM is used
to explain, while SIGTERM works and it closes application, some applications supports graceful shutdown through other signals like SIGUSR1.
For example HAProxy is one of them. if SIGTERM is issued, application will exit, but it will not gracefully wait until all connection are done and that is not ideal.
would something like this be acceptable to implement as an additional feature ?
Metadata
Metadata
Assignees
Labels
No labels