yuban-server.service 508 B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=Yuban stateless business capability API
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. Type=simple
  7. User=yuban
  8. Group=yuban
  9. WorkingDirectory=/opt/yuban-server
  10. EnvironmentFile=/etc/yuban-server.env
  11. ExecStart=/usr/bin/node /opt/yuban-server/src/index.mjs
  12. Restart=always
  13. RestartSec=5
  14. NoNewPrivileges=true
  15. PrivateTmp=true
  16. ProtectSystem=strict
  17. ProtectHome=true
  18. ReadWritePaths=/opt/yuban-server/var /opt/yuban-server/tmp
  19. LimitNOFILE=65535
  20. [Install]
  21. WantedBy=multi-user.target