Add OpenRC service script (contrib)#405
Merged
Merged
Conversation
Both OpenRC and systemd can make use of tmpfiles.d entries, https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html Our sample configuration files effectively recommend putting a local socket inside @RUNSTATEDIR@/opendkim, so here we add a tmpfiles.d entry to create that directory and set the appropriate permissions, assuming that the user running opendkim will be opendkim:opendkim.
Add contrib/systemd/opendkim.tmpfiles and its ".in" counterpart to the appropriate lists in Makefile.am so that the former is built from the latter.
These two variables, corresponding to ./configure --sbindir and --sysconfdir, can be used by our service scripts. Let's begin substituting them in preparation for making the service scripts more robust.
Add a service script for the OpenRC init system used by many linux distributions: * https://github.com/openrc/openrc * https://en.wikipedia.org/wiki/OpenRC The service script is a template, in that the appropriate values of --sbindir, --runstatedir, and so on will be substituted into it at build-time. The hope is that this makes one script suitable for all OpenRC distributions.
Add contrib/openrc/opendkim.openrc and its ".in" counterpart to the appropriate lists in Makefile.am so that the former is built from the latter.
Include the OpenRC "README" in dist_doc_DATA, and tell autoconf/automake about the directory that contains it.
These are built from templates, we aren't interested in them.
thegushi
added a commit
to thegushi/OpenDKIM
that referenced
this pull request
Jun 6, 2026
…vice script and tmpfiles.d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continuing #41
@SBINDIR@and@SYSCONFDIR@into that service script and tmpfiles entry