Skip to content

systemd: switch to Type=exec#90

Closed
adamdickmeiss wants to merge 1 commit into
masterfrom
zebrasrv-service-uses-type-exec
Closed

systemd: switch to Type=exec#90
adamdickmeiss wants to merge 1 commit into
masterfrom
zebrasrv-service-uses-type-exec

Conversation

@adamdickmeiss

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the packaged systemd unit files for zebrasrv (both RPM and Debian variants) to run the server in the foreground under systemd using Type=exec, removing the previous Type=forking/PIDFile approach.

Changes:

  • Switch zebrasrv systemd units from Type=forking to Type=exec and drop daemonizing / PIDFile usage.
  • Simplify ExecStart to run without -D (daemonize) and without writing /run/zebrasrv.pid.
  • Add ExecReload and adjust Restart policy.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
rpm/zebrasrv.service Updates the RPM-installed systemd unit to Type=exec and adjusts start/restart/reload behavior.
debian/idzebra-2.0-utils.zebrasrv.service Mirrors the same systemd unit changes for the Debian packaging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rpm/zebrasrv.service
Comment on lines +9 to +11
Type=exec
EnvironmentFile=/etc/sysconfig/zebrasrv
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS} -p /run/zebrasrv.pid -D"
PIDFile=/run/zebrasrv.pid
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
Comment thread rpm/zebrasrv.service
PIDFile=/run/zebrasrv.pid
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
ExecReload=kill -HUP $MAINPID
Comment thread rpm/zebrasrv.service
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
ExecReload=kill -HUP $MAINPID
Restart=on-abort
Comment on lines +9 to +11
Type=exec
EnvironmentFile=/etc/default/zebrasrv
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS} -p /run/zebrasrv.pid -D"
PIDFile=/run/zebrasrv.pid
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
PIDFile=/run/zebrasrv.pid
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
ExecReload=kill -HUP $MAINPID
Restart=on-abnormal
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS}"
ExecReload=kill -HUP $MAINPID
Restart=on-abort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants