systemd does not support trailing comments, so don't use them

Closes rabbitmq/rabbitmq-server#1422.
This commit is contained in:
Michael Klishin 2017-11-07 06:48:38 +02:00
parent 44e56507f4
commit f1fb6d74ff
No known key found for this signature in database
GPG Key ID: D1A1B77724CE35D5
2 changed files with 8 additions and 6 deletions

View File

@ -12,13 +12,14 @@ TimeoutStartSec=3600
# in the event of a failure. systemd service restarts are not a
# replacement for service monitoring. Please see
# http://www.rabbitmq.com/monitoring.html
Restart=on-failure # https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
RestartSec=10 # https://www.freedesktop.org/software/systemd/man/systemd.service.html#RestartSec=
Restart=on-failure
RestartSec=10
WorkingDirectory=/var/lib/rabbitmq
ExecStart=/usr/sbin/rabbitmq-server
ExecStop=/usr/sbin/rabbitmqctl stop
ExecStop=/bin/sh -c "while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done"
SuccessExitStatus=69 # rabbitmq/rabbitmq-server-release#51
# See rabbitmq/rabbitmq-server-release#51
SuccessExitStatus=69
[Install]
WantedBy=multi-user.target

View File

@ -14,13 +14,14 @@ TimeoutStartSec=3600
# in the event of a failure. systemd service restarts are not a
# replacement for service monitoring. Please see
# http://www.rabbitmq.com/monitoring.html
Restart=on-failure # https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
RestartSec=10 # https://www.freedesktop.org/software/systemd/man/systemd.service.html#RestartSec=
Restart=on-failure
RestartSec=10
WorkingDirectory=/var/lib/rabbitmq
ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop
ExecStop=/bin/sh -c "while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done"
SuccessExitStatus=69 # rabbitmq/rabbitmq-server-release#51
# See rabbitmq/rabbitmq-server-release#51
SuccessExitStatus=69
[Install]
WantedBy=multi-user.target