test.service 444 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=My Service
  3. Documentation=https://example.com/docs/my-service.html
  4. #After=network.target
  5. [Service]
  6. Type=simple
  7. ExecStart=/home/heyicong/DragonOs/bin/sysroot/bin/DragonReach --option1=value1 --option2=value2
  8. WorkingDirectory=/home/heyicong/
  9. User=myuser
  10. Group=mygroup
  11. Environment=VAR1=value1
  12. Environment=VAR2=value2
  13. Restart=on-failure
  14. RestartSec=5s
  15. TimeoutStartSec=10s
  16. TimeoutStopSec=10s
  17. [Install]
  18. #WantedBy=multi-user.target