Blame SOURCES/rhcd-stop.service.in

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