Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

setup-loopback-device.upstart 209B

123456789101112
  1. description "Setup {{ device_name }} device"
  2. start on filesystem
  3. task
  4. pre-start script
  5. if /sbin/losetup {{ device_name }}; then
  6. stop ; exit 0
  7. fi
  8. end script
  9. exec losetup {{ device_name }} {{ file }}