mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1002] [MERGED] Add systemd user service for ntfy-client.service #1488
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:ntfy-client_user_service📝 Commits (3)
b6983e6add ntfy-client.service as user service0581a9eremove systemd user service cmds from postinst.sh45e1707remove 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.serviceas a user service along the already existing system service.This allows the use of
~/.config/ntfy/client.yamlfor 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 anoverride.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.serviceto/usr/lib/systemd/user/ntfy-client.service.I've been using it successfully so far. I've also added entries to
scripts/postinst.shand.goreleaser.yml, but haven't tested those.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.