23 lines
761 B
Desktop File
23 lines
761 B
Desktop File
[Unit]
|
|
Description=Layer nomad & consul with rpm-ostree
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
# We run before `zincati.service` to avoid conflicting rpm-ostree
|
|
# transactions.
|
|
Before=zincati.service
|
|
ConditionPathExists=!/var/lib/%N.stamp
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
# `--allow-inactive` ensures that rpm-ostree does not return an error
|
|
# if the package is already installed. This is useful if the package is
|
|
# added to the root image in a future Fedora CoreOS release as it will
|
|
# prevent the service from failing.
|
|
ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive consul
|
|
ExecStart=systemctl enable consul
|
|
ExecStart=/bin/touch /var/lib/%N.stamp
|
|
ExecStart=systemctl reboot
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |