-
Notifications
You must be signed in to change notification settings - Fork 38
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
etc: Add Debian init.d script for mptcpd. #207
Conversation
Add a Debian init.d script for mptcpd for the case where start of mptcpd through systemd is not available or undesirable.
@matttbe FYI |
Pull Request Test Coverage Report for Build 1759304918Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
The |
I don't yet know if other platforms such as Fedora support this Debian style |
Yeah, that doesn't seem good - but I don't know how packagers usually handle installation of sysv-init vs systemd scripts |
If I'm not mistaken, you can install both the init.d script and systemd service. If you use systemd and there is a service, the init.d script will be ignored I guess. e.g. for iwd: https://salsa.debian.org/debian/iwd/-/commit/65a0232b9715d9002d69d55b217ae6e3f3c75ffb If it eases stuff, only having the file in the tarball and not installing it by default (or only with a configure option) would help packagers. |
The $sysconfdir/init.d/mptcpd script does not support --help and --version command line options. Exempt it from the Automake generated installcheck.
### END INIT INFO | ||
|
||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:@libdir@ | ||
export LD_LIBRARY_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting this environment variable like this probably isn't good idea when supporting multi-arch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #211 for a related issue.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:@libdir@ | ||
export LD_LIBRARY_PATH | ||
|
||
DAEMON="@mptcpdbindir@/mptcpd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. This may not play well with multi-arch.
|
Add a Debian init.d script for mptcpd for the case where start of
mptcpd through systemd is not available or undesirable.