[Unit] Description=OPENIM OPENIM MSGGATEWAY Documentation=https://github.com/openimsdk/open-im-server/blob/main/deployment/init/README.md [Service] WorkingDirectory=${OPENIM_DATA_DIR}/openim-msggateway ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-msggateway ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-msggateway --config=${OPENIM_CONFIG_DIR}/openim-msggateway.yaml Restart=always RestartSec=5 StartLimitInterval=0 [Install] WantedBy=multi-user.target