Files
open-im-server/deployments/templates/init/openim-api.service
T

16 lines
479 B
Desktop File
Raw Normal View History

2023-08-15 15:35:57 +08:00
[Unit]
2023-08-15 15:41:09 +08:00
Description=OPENIM OPENIM API
Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md
2023-08-15 15:35:57 +08:00
[Service]
WorkingDirectory=${OPENIM_DATA_DIR}/openim-api
2023-08-15 15:41:09 +08:00
ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-api
ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR}
ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-api --config=${OPENIM_CONFIG_DIR}/openim-api.yaml
2023-08-15 15:35:57 +08:00
Restart=always
RestartSec=5
StartLimitInterval=0
[Install]
WantedBy=multi-user.target