[GH-ISSUE #570] Modularize init and install scripts and remove hard requirement on systemd #432

Closed
opened 2026-05-07 00:24:05 +02:00 by BreizhHardware · 2 comments

Originally created by @code-kungfu on GitHub (Jan 4, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/570

Currently init and install scripts makes the assumption you are installing ntfy on a distro with systemd present.

As the unix-like world isn't just about systemd, and it is often the case systemd is prohibited, the scripts used needs to facilitate and support the most commonly used non-systemd init systems like SysV, OpenRC, s6, runit and so on, for users who runs Alpine Linux, Devuan Linux or any other non-systemd distro as their server base.
There are several ways this could be solved, but the most straight forward way, I would suggest to have have an init script generator which can be invoked in the postinst step and output an init script based on the target system.

Originally created by @code-kungfu on GitHub (Jan 4, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/570 Currently init and install scripts makes the assumption you are installing ntfy on a distro with systemd present. As the unix-like world isn't just about systemd, and it is often the case systemd is prohibited, the scripts used needs to facilitate and support the most commonly used non-systemd init systems like SysV, OpenRC, s6, runit and so on, for users who runs Alpine Linux, Devuan Linux or any other non-systemd distro as their server base. There are several ways this could be solved, but the most straight forward way, I would suggest to have have an init script generator which can be invoked in the postinst step and output an init script based on the target system.
Author
Owner

@binwiederhier commented on GitHub (Mar 26, 2023):

Thank you for your suggestion. I understand that not all distros use systemd, and it would be great to support more init systems. However, I am not able to create an init script generator myself. You are free to create your own init script generator or use a third-party one.

<!-- gh-comment-id:1484217567 --> @binwiederhier commented on GitHub (Mar 26, 2023): Thank you for your suggestion. I understand that not all distros use systemd, and it would be great to support more init systems. However, I am not able to create an init script generator myself. You are free to create your own init script generator or use a third-party one.
Author
Owner

@code-kungfu commented on GitHub (Mar 27, 2023):

@binwiederhier I understand you don't have the capacity to write an init script generator, but would you please keep this issue open?
I 'm working on SysV / OpenRC init / install scripts for ntfy for non-systemd distros.
Thank you.

<!-- gh-comment-id:1484580534 --> @code-kungfu commented on GitHub (Mar 27, 2023): @binwiederhier I understand you don't have the capacity to write an init script generator, but would you please keep this issue open? I 'm working on SysV / OpenRC init / install scripts for ntfy for non-systemd distros. Thank you.
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#432
No description provided.