Blame SOURCES/rhcd-stop.service.in

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