Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian/idzebra-2.0-utils.zebrasrv.default
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
CONFIG="/etc/idzebra/zebra.cfg"

# Full path to zebra server. Referred to in zebrasrv.service
DAEMON=/usr/bin/zebrasrv-2.0
DAEMON="/usr/bin/zebrasrv-2.0"

# Options that are passed to the Daemon and used in zebrasrv.service
OPTIONS="-l /var/log/zebrasrv.log -u nobody -c ${CONFIG} tcp:@6:2100"
4 changes: 2 additions & 2 deletions rpm/zebrasrv.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

[Unit]
Description=Index Data Zebra server
Documentation=man:idzebra(1)
Documentation=man:zebrasrv(8)
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/zebrasrv
ExecStart=/bin/sh -c "exec ${DAEMON} ${OPTIONS} -p /run/zebrasrv.pid -D"
PIDFile=/run/zebrasrv.pid
ReStart=on-abnormal
Restart=on-abnormal

[Install]
WantedBy=multi-user.target
16 changes: 11 additions & 5 deletions rpm/zebrasrv.sysconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zebrasrv sysconfig file
CONFIG=/etc/idzebra/zebra.cfg
# this is used in zebrasrv systemd service file (not only the final OPTIONS value)
DAEMON=/usr/bin/zebrasrv-2.0
OPTIONS="-c $CONFIG -l /var/log/zebrasrv.log -u nobody tcp:@6:2100"
# Defaults for zebrasrv systemd service
# This is a POSIX shell fragment

# zebra.cfg (will be supplied with option -c)
CONFIG="/etc/idzebra/zebra.cfg"

# Full path to zebra server. Referred to in zebrasrv.service
DAEMON="/usr/bin/zebrasrv-2.0"

# Options that are passed to the Daemon and used in zebrasrv.service
OPTIONS="-l /var/log/zebrasrv.log -u nobody -c ${CONFIG} tcp:@6:2100"