server.service 216 B

123456789101112
  1. [Unit]
  2. Description=Server
  3. After=syslog.target network.target
  4. [Service]
  5. Type=simple
  6. WorkingDirectory=/data/wwwroot/server/
  7. ExecStart=/data/wwwroot/server/main
  8. Restart=on-failure
  9. [Install]
  10. WantedBy=multi-user.target