anylink.service 677 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=AnyLink Server Service
  3. Documentation=https://github.com/bjdgyc/anylink
  4. After=network-online.target
  5. [Service]
  6. Type=simple
  7. User=root
  8. WorkingDirectory=/usr/local/anylink-deploy
  9. Restart=on-failure
  10. RestartSec=5s
  11. ExecStart=/usr/local/anylink-deploy/anylink --conf=/usr/local/anylink-deploy/conf/server.toml
  12. # systemd older than v236
  13. # ExecStart=/bin/bash -c 'exec /usr/local/anylink-deploy/anylink --conf=/usr/local/anylink-deploy/conf/server.toml >> /usr/local/anylink-deploy/log/anylink.log 2>&1'
  14. StandardOutput=file:/usr/local/anylink-deploy/log/anylink.log
  15. StandardError=file:/usr/local/anylink-deploy/log/anylink.log
  16. [Install]
  17. WantedBy=multi-user.target