systemctl.service.template 472 Bytes
[Unit]
Description=${SPUG_APP_NAME}
After=network.target

[Service]
Type=simple
User=${CURRENT_USER}
Group=${CURRENT_USER_GROUP}

WorkingDirectory=${SERVICE_RUN_DIR}
ExecStart=${_SPUG_GLOBAL_CONFIG_JRE21_EXECUTE_FILE} ${SERVICE_JAR_RUN_PARAMS} -jar ${SERVICE_RUN_DIR}/${SERVICE_JAR_FILE_NAME}  --spring.profiles.active=pro
StandardOutput=null
StandardError=null

Restart=always
RestartSec=10
StartLimitIntervalSec=0
TimeoutStopSec=60s

[Install]
WantedBy=multi-user.target