1
0

secrets/subscriber: use correct numbers for signals to s6-svc

This commit is contained in:
Daniel Barlow 2025-03-09 20:34:29 +00:00
parent 8c39b47cae
commit d1f87a56e0
2 changed files with 4 additions and 4 deletions

View File

@ -28,9 +28,9 @@ let
"quit" = "-s 3"; "quit" = "-s 3";
"kill" = "-s 9"; "kill" = "-s 9";
"term" = "-s 15"; "term" = "-s 15";
"winch" = "-s 28"; "winch" = "-s 20";
"usr1" = "-s 10"; "usr1" = "-s usr1";
"usr2" = "-s 12"; "usr2" = "-s usr2";
} }
.${action}; .${action};

View File

@ -58,7 +58,7 @@
(case action (case action
:restart (system (%% "s6-svc -r /run/service/%s" service)) :restart (system (%% "s6-svc -r /run/service/%s" service))
:restart-all (system (%% "s6-rc -b -d %q; s6-rc-up-tree %q" service service)) :restart-all (system (%% "s6-rc -b -d %q; s6-rc-up-tree %q" service service))
[:signal n] (system (%% "s6-svc -s %d /run/service/%s" n service)))) [:signal n] (system (%% "s6-svc -s %q /run/service/%s" n service))))
(local POLLIN 0x0001) (local POLLIN 0x0001)
(local POLLHUP 0x0010) (local POLLHUP 0x0010)