Blame SOURCES/rhcd-stop.service.in

588af0
# This file is part of rhc.
588af0
#
588af0
# Any changes made to this file will be overwritten during a software update. To
588af0
# override a parameter in this file, create a drop-in file, typically located at
588af0
# /etc/systemd/system/rhcd-stop.service.d/override.conf. Put the desired
588af0
# overrides in that file and reload systemd. The next time this service is run
588af0
# (either manually or via a systemd timer), the overridden values will be in
588af0
# effect.
588af0
#
588af0
# For more information about systemd drop-in files, see systemd.unit(5).
588af0
588af0
[Unit]
588af0
Description=Automatically stop rhcd when rhsm cert does not exists
588af0
ConditionPathExists=!@sysconfdir@/pki/consumer/cert.pem
588af0
588af0
[Service]
588af0
Type=simple
588af0
ExecStart=/bin/systemctl stop rhcd.service
588af0
ExecStopPost=/bin/systemctl unmask --now rhcd.path
588af0
ExecStopPost=/bin/systemctl start rhcd.path