[PR #1002] [MERGED] Add systemd user service for ntfy-client.service #1488

Closed
opened 2026-05-07 01:02:20 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/1002
Author: @dandersch
Created: 1/15/2024
Status: Merged
Merged: 5/25/2025
Merged by: @binwiederhier

Base: mainHead: ntfy-client_user_service


📝 Commits (3)

  • b6983e6 add ntfy-client.service as user service
  • 0581a9e remove systemd user service cmds from postinst.sh
  • 45e1707 remove systemd user daemon-reload from postinst.sh

📊 Changes

4 files changed (+36 additions, -35 deletions)

View changed files

📝 .goreleaser.yml (+3 -0)
client/user/ntfy-client.service (+10 -0)
📝 docs/subscribe/cli.md (+11 -34)
📝 scripts/postinst.sh (+12 -1)

📄 Description

We can offer ntfy-client.service as a user service along the already existing system service.

This allows the use of ~/.config/ntfy/client.yaml for configuration (for the system service, the config is hardcoded to use
/etc/ntfy/client.yaml). It also means that we can update the docs to recommend enabling the user service for "personal desktop machine" use in https://docs.ntfy.sh/subscribe/cli/?h=systemd#using-the-systemd-service and remove the part about using an override.conf (unless this has another use case for the ntfy-client that I am missing?).

Repos would need to update their packages to copy over client/user/ntfy-client.service to /usr/lib/systemd/user/ntfy-client.service.

I've been using it successfully so far. I've also added entries to scripts/postinst.sh and .goreleaser.yml, but haven't tested those.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/1002 **Author:** [@dandersch](https://github.com/dandersch) **Created:** 1/15/2024 **Status:** ✅ Merged **Merged:** 5/25/2025 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `ntfy-client_user_service` --- ### 📝 Commits (3) - [`b6983e6`](https://github.com/binwiederhier/ntfy/commit/b6983e68666e6768ef24a0011c2a07f3352448c9) add ntfy-client.service as user service - [`0581a9e`](https://github.com/binwiederhier/ntfy/commit/0581a9e6800fceae8775eb37237315979055dd06) remove systemd user service cmds from postinst.sh - [`45e1707`](https://github.com/binwiederhier/ntfy/commit/45e1707d3bb4498b31230b5921e206bd3ba71a37) remove systemd user daemon-reload from postinst.sh ### 📊 Changes **4 files changed** (+36 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `.goreleaser.yml` (+3 -0) ➕ `client/user/ntfy-client.service` (+10 -0) 📝 `docs/subscribe/cli.md` (+11 -34) 📝 `scripts/postinst.sh` (+12 -1) </details> ### 📄 Description We can offer `ntfy-client.service` as a user service along the already existing system service. This allows the use of `~/.config/ntfy/client.yaml` for configuration (for the system service, the config is hardcoded to use `/etc/ntfy/client.yaml`). It also means that we can update the docs to recommend enabling the user service for "personal desktop machine" use in https://docs.ntfy.sh/subscribe/cli/?h=systemd#using-the-systemd-service and remove the part about using an `override.conf` (unless this has another use case for the ntfy-client that I am missing?). Repos would need to update their packages to copy over `client/user/ntfy-client.service` to `/usr/lib/systemd/user/ntfy-client.service`. I've been using it successfully so far. I've also added entries to `scripts/postinst.sh` and `.goreleaser.yml`, but haven't tested those. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:02:20 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1488
No description provided.