systemd.service 323 B

1234567891011121314151617
  1. [Unit]
  2. Description=nsq-server
  3. After=nsq-server.service
  4. [Service]
  5. Type=forking
  6. User=root
  7. Group=root
  8. ExecStart=/opt/nsq-server/nsq-server/run.sh
  9. ExecReload=/opt/nsq-server/nsq-server/restart.sh
  10. ExecStop=/opt/nsq-server/nsq-server/stop.sh
  11. PrivateTmp=true
  12. Restart=always
  13. RestartSec=5
  14. [Install]
  15. WantedBy=multi-user.target