-
Notifications
You must be signed in to change notification settings - Fork 4
Use systemd on Debian #60
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8b90c3e
Use systemd on Debian
adamdickmeiss 47c21cf
Update debian/metaproxy.postinst
adamdickmeiss 8c7a7b8
Original values
adamdickmeiss 1013e6e
Merge branch 'master' into debian-systemd
adamdickmeiss 1368dfa
Merge remote-tracking branch 'origin/master' into debian-systemd
adamdickmeiss 834ff17
Add dh_installsystemd debhelper scripts
adamdickmeiss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,8 @@ | ||
| # Defaults for metaproxy initscript | ||
| # sourced by /etc/init.d/metaproxy | ||
| # installed at /etc/default/metaproxy by the maintainer scripts | ||
|
|
||
| # | ||
| # This is a POSIX shell fragment | ||
| # | ||
|
|
||
| # Additional options that are passed to the Daemon. | ||
| DAEMON_OPTS="-D -u $SERVER_USER -p /var/run/metaproxy.pid -l /var/log/metaproxy.log -c /etc/metaproxy/metaproxy.xml" | ||
| # Metaproxy user information | ||
| SERVER_HOME=/var/lib/metaproxy | ||
| SERVER_USER=metaproxy | ||
| SERVER_NAME="Metaproxy user" | ||
| SERVER_GROUP=metaproxy | ||
| # Options passed in metaproxy.service | ||
| # Do *not* use -D unless changing Type=fork | ||
| OPTIONS="-u ${SERVER_USER} -l /var/log/metaproxy.log -c /etc/metaproxy/metaproxy.xml" |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #!/bin/sh | ||
| set -e | ||
| if [ -x "/etc/init.d/metaproxy" ]; then | ||
| invoke-rc.d metaproxy stop || exit $? | ||
| # Automatically added by dh_installsystemd/13.24.2 | ||
| if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then | ||
| deb-systemd-invoke stop 'metaproxy.service' >/dev/null || true | ||
| fi | ||
| # End automatically added section |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Metaproxy systemd-style configuration | ||
|
|
||
| [Unit] | ||
| Description=Metaproxy Z39.50/SRU router | ||
| Documentation=man:metaproxy(1) | ||
| After=network.target | ||
|
|
||
| [Service] | ||
| Type=exec | ||
| EnvironmentFile=/etc/default/metaproxy | ||
| Restart=on-abort | ||
| KillMode=process | ||
| ExecStart=/bin/sh -c "exec /usr/bin/metaproxy ${OPTIONS}" | ||
| ExecReload=kill -HUP $MAINPID | ||
adamdickmeiss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.