Blob Blame History Raw
# This file is part of rhc.
#
# Any changes made to this file will be overwritten during a software update. To
# override a parameter in this file, create a drop-in file, typically located at
# /etc/systemd/system/rhcd-stop.service.d/override.conf. Put the desired
# overrides in that file and reload systemd. The next time this service is run
# (either manually or via a systemd timer), the overridden values will be in
# effect.
#
# For more information about systemd drop-in files, see systemd.unit(5).

[Unit]
Description=Automatically stop rhcd when rhsm cert does not exists
ConditionPathExists=!@sysconfdir@/pki/consumer/cert.pem

[Service]
Type=simple
ExecStart=/bin/systemctl stop rhcd.service
ExecStopPost=/bin/systemctl unmask --now rhcd.path
ExecStopPost=/bin/systemctl start rhcd.path