test.service 457 B

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