[Unit] Description=OPENIM OPENIM API Documentation=Control interface for the OpenIM API service. Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md [Service] WorkingDirectory=${OPENIM_DATA_DIR}/openim-api 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 Restart=always RestartSec=5 StartLimitInterval=0 [Install] WantedBy=multi-user.target