Saltstack Official Linux Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

17 lines
526B

  1. [Unit]
  2. Description=Setup {{ device_name }} device
  3. DefaultDependencies=no
  4. After=systemd-udev-settle.service
  5. Before=lvm2-activation-early.service
  6. Wants=systemd-udev-settle.service
  7. [Service]
  8. {# The command is prefixed with '-' to consider it a success if the loopback device is already setup #}
  9. ExecStart=-/sbin/losetup {{ device_name }} {{ file }}
  10. {# In order to Salt can recognize oneshot service as running, we need it to remain active after it exited #}
  11. RemainAfterExit=true
  12. Type=oneshot
  13. [Install]
  14. WantedBy=local-fs.target