Skip to content

Commit d32586f

Browse files
author
Emile Joubert
committed
Merged bug24809 into default
2 parents b59948c + b73abaf commit d32586f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packaging/RPMS/Fedora/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ endif
1515
ifeq "$(RPM_OS)" "suse"
1616
REQUIRES=/sbin/chkconfig /sbin/service
1717
OS_DEFINES=--define '_initrddir /etc/init.d' --define 'dist .suse'
18+
START_PROG=setsid
1819
else
1920
REQUIRES=chkconfig initscripts
2021
OS_DEFINES=--define '_initrddir /etc/rc.d/init.d'
22+
START_PROG=runuser rabbitmq --session-command
2123
endif
2224

2325
rpms: clean server
@@ -32,7 +34,7 @@ prepare:
3234
cp ${COMMON_DIR}/* SOURCES/
3335
sed -i \
3436
-e 's|^LOCK_FILE=.*$$|LOCK_FILE=/var/lock/subsys/$$NAME|' \
35-
-e 's|^START_PROG=.*$$|START_PROG="runuser rabbitmq --session-command"|' \
37+
-e 's|^START_PROG=.*$$|START_PROG="$(START_PROG)"|' \
3638
SOURCES/rabbitmq-server.init
3739
ifeq "$(RPM_OS)" "fedora"
3840
# Fedora says that only vital services should have Default-Start

0 commit comments

Comments
 (0)