You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
798 B
21 lines
798 B
2 years ago
|
# 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
|