cloud-seed.service 836 B

12345678910111213141516171819202122232425262728293031
  1. [Unit]
  2. Description=cloud-seed
  3. Requires=network-online.target
  4. After=network-online.target
  5. # If cloud-seed fails, try again every 5 seconds for 30 seconds. If it still
  6. # fails, reboot the system. If your use of cloud-seed is not critical to system
  7. # operation, you may consider changing the FailureAction setting.
  8. StartLimitBurst=6
  9. StartLimitIntervalSec=5
  10. FailureAction=reboot
  11. [Service]
  12. Type=oneshot
  13. RemainAfterExit=true
  14. Restart=on-failure
  15. ExecStart=/usr/bin/cloud-seed
  16. Environment=RUST_LOG=debug
  17. StandardOutput=journal+console
  18. # You can set a more restrictive umask here to restrict the permissions that
  19. # cloud-seed can create files with.
  20. UMask=0000
  21. # cloud-seed can run as a non-root user. In this case, files can only be
  22. # written at paths that this user has permission to write to.
  23. # User=
  24. [Install]
  25. WantedBy=multi-user.target