Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add systemd service unit #417

Merged
merged 1 commit into from
Jul 8, 2021
Merged

add systemd service unit #417

merged 1 commit into from
Jul 8, 2021

Conversation

kmohrf
Copy link
Contributor

@kmohrf kmohrf commented Jul 7, 2021

As suggested in #409 and documented in #411 this PR adds a systemd service unit as a basis for package maintainers and should even be usable as a drop-in unit for linux distributions that use systemd as its init system as long as the listmonk binary resides in /usr/bin/listmonk.

Any comments or questions are appreciated :).

This systemd service unit may serve as an example for package
maintainers to write their own units or can be used as-is to run
listmonk on a operating system that uses systemd as its init system.

This is a template unit so that multiple listmonk instances can be
started and controlled through the @-syntax. Instances are started by
calling `systemctl start [email protected]` which goes on to
read `/etc/default/listmonk` and `/etc/default/listmonk-myinstance` as
environment files, uses `/etc/listmonk/myinstance.toml` as the
configuration file and creates a state directory in
`/var/lib/private/listmonk-myinstance`.
@knadh knadh merged commit c8826d0 into knadh:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants