2
0

srs.service 600 B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=srs - a simple, high efficiency and realtime video server
  3. Documentation=https://github.com/ossrs/srs/wiki
  4. After=network-online.target remote-fs.target nss-lookup.target
  5. Wants=network-online.target
  6. [Service]
  7. Type=simple
  8. User=nobody
  9. Group=nobody
  10. WorkingDirectory=/var/lib/srs
  11. EnvironmentFile=-/etc/sysconfig/srs
  12. PIDFile=/var/lib/srs/srs.pid
  13. ExecStartPre=/usr/bin/srs -c /etc/srs/srs.conf -t
  14. ExecStart=/usr/bin/srs -c /etc/srs/srs.conf
  15. ExecReload=/bin/kill -s HUP $MAINPID
  16. ExecStop=/bin/kill -s TERM $MAINPID
  17. Restart=on-failure
  18. PrivateTmp=true
  19. [Install]
  20. WantedBy=multi-user.target