Commit Graph
24 Commits
Author SHA1 Message Date
Benedikt Koeppel a0eb1697f0 Fix --wait-pid false-negative for cross-user processes and pidof docs
processExists used kill(pid, 0) and treated any error as "gone", but
that syscall returns EPERM when the target PID exists but belongs to
a user the caller can't signal (e.g. ntfy running as a regular user
waiting on a root-owned restic process). The wait loop then exited
immediately with "process with PID ... not running" even though the
process was very much alive.

Treat EPERM as "exists" and only ESRCH as "gone". The loop stays
correct: EPERM while the target is alive, ESRCH once it exits.

Also fix the pidof example in docs/subscribe/cli.md: plain `pidof X`
returns space-separated PIDs when multiple matches exist, which
breaks --wait-pid's single-int argument. Use `pidof -s` (single-shot)
so the example works even with multiple matching processes.
2026-04-20 10:42:34 +02:00
Kristopher Paulsen 8bf4727a1c Missing double quote, sneaky little bugger 2025-07-13 09:50:06 -04:00
binwiederhier 7f86108379 Update docs 2025-05-25 12:57:02 -04:00
Philipp C. Heckel 425e6d064e Merge pull request #1002 from dandersch/ntfy-client_user_service
Add systemd user service for `ntfy-client.service`
2025-05-25 12:42:51 -04:00
Anirvan Chatterjee 333d901661 Fix typo in cli.md ("subscibe" → "subscribe") 2024-08-25 22:19:05 -07:00
da b6983e6866 add ntfy-client.service as user service 2024-01-15 22:06:46 +01:00
Mike Taylor 2afe1fbeed Update cli.md
Add macOS client location to the options listed
2023-10-28 13:35:52 -04:00
Hunter Kehoe 25be5b47e4 allow default-token and per-subscription tokens in client.yml 2023-03-05 22:57:51 -07:00
Hunter Kehoe f6a42e7dcd add docs explaining default-user, default-password, default-command 2022-07-31 16:40:07 -06:00
Philipp Heckel 297601d0f2 Bump version 2022-06-23 14:33:51 -04:00
Philipp Heckel 26fda847ca Docs 2022-06-21 11:43:26 -04:00
Philipp Heckel fe96110e6b macOS universal binaries, install instructions for Windows and macOS 2022-05-10 22:10:38 -04:00
Philipp Heckel 19d2a46457 Build for Windows 2022-05-09 19:46:32 -04:00
Philipp Heckel 613348d37e Continued work on Windows CLI 2022-05-09 16:22:52 -04:00
lrabane 7e1a71b694 Add docs for auth support with CLI 2022-02-17 20:38:48 +01:00
Philipp Heckel d714af43c9 More docs, more tests, more docs 2022-02-03 20:07:23 -05:00
Philipp Heckel 6779d9dd1f Add NTFY_RAW 2021-12-23 00:16:28 +01:00
Philipp Heckel 68d881291c Docs, LoadConfig, config test 2021-12-22 13:46:17 +01:00
Philipp Heckel 66c749d5f0 Include image file, docs 2021-12-22 10:21:59 +01:00
Philipp Heckel 85b4abde6c Docs 2021-12-20 20:46:51 -05:00
Philipp Heckel edb6b0cf06 More docs, still WIP 2021-12-19 23:04:55 -05:00
Philipp Heckel f24855ca9a Documentation, fix test, return JSON on publish, add --quiet flag for publish 2021-12-19 21:01:49 -05:00
Philipp Heckel 5639cf7a0f Docs 2021-12-17 22:38:29 -05:00
Philipp Heckel a1f513f6a5 WIP CLI 2021-12-17 09:32:59 -05:00