From 33fb7725c5a9d68d28bc2a30537210518aef3486 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 21 Feb 2021 22:03:03 +0100 Subject: river: send SIGTERM to init command process group Run the init command in a new process group and send SIGTERM to the entire group on exit. Without doing this, only the sh invocation used for the `sh -c` would receive SIGTERM. This is particularly useful when starting a per-session server manager as the init command. --- doc/river.1.scd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/river.1.scd b/doc/river.1.scd index 9ca0c43..bd38fa1 100644 --- a/doc/river.1.scd +++ b/doc/river.1.scd @@ -39,10 +39,9 @@ following locations, checked in the order listed: - $HOME/.config/river/init - /etc/river/init -This executable init file will be run after river's wayland server is -initialized but before entering the main loop. If the process started by -this flag is still running when river exits, river will send SIGTERM and -and wait for it to terminate. +The executable init file will be run as a process group leader after river's +wayland server is initialized but before entering the main loop. On exit, +river will send SIGTERM to this process group. Usually this will be a shell script invoking *riverctl*(1) to create mappings, start programs such as a status bar, and preform other configuration. -- cgit v1.2.3