File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1515ifeq "$(RPM_OS ) " "suse"
1616REQUIRES =/sbin/chkconfig /sbin/service
1717OS_DEFINES =--define '_initrddir /etc/init.d' --define 'dist .suse'
18+ START_PROG =setsid
1819else
1920REQUIRES =chkconfig initscripts
2021OS_DEFINES =--define '_initrddir /etc/rc.d/init.d'
22+ START_PROG =runuser rabbitmq --session-command
2123endif
2224
2325rpms : 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
3739ifeq "$(RPM_OS ) " "fedora"
3840# Fedora says that only vital services should have Default-Start
You can’t perform that action at this time.
0 commit comments