test1.service 402 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=My Service1
  3. Documentation=https://example.com/docs/my-service.html
  4. #After=/home/heyicong/DragonReach/parse_test/test2.service
  5. [Service]
  6. Type=simple
  7. ExecStart=/bin/ls
  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