数据解析模块
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

iot-platform.service 959B

1234567891011121314151617181920212223242526272829303132
  1. [Unit]
  2. Description=IoT Platform Service
  3. After=network.target mysqld.service redis.service
  4. [Service]
  5. Type=simple
  6. User=root
  7. Group=root
  8. WorkingDirectory=/opt/iot-platform
  9. # JVM options
  10. Environment="JVM_OPTS=-server -Duser.timezone=Asia/Shanghai -Dfile.encoding=UTF-8 -Xms1g -Xmx2g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/iot-platform/logs/heapdump.hprof -XX:+UseG1GC -XX:MaxGCPauseMillis=200"
  11. # Load environment variables from .env (passwords, credentials)
  12. EnvironmentFile=/opt/iot-platform/.env
  13. ExecStart=/bin/bash -c 'exec java ${JVM_OPTS} -jar /opt/iot-platform/iot-platform.jar --spring.profiles.include=online'
  14. ExecStop=/bin/kill -SIGTERM $MAINPID
  15. ExecReload=/bin/kill -SIGUSR1 $MAINPID
  16. Restart=always
  17. RestartSec=10
  18. StartLimitInterval=60
  19. StartLimitBurst=3
  20. # Graceful shutdown: wait up to 60s for the app to stop
  21. TimeoutStopSec=60
  22. KillSignal=SIGTERM
  23. [Install]
  24. WantedBy=multi-user.target