mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-27 05:52:29 +08:00 
			
		
		
		
	feat: add openim server template file
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
		
							parent
							
								
									92d8c65aa0
								
							
						
					
					
						commit
						90de0b730d
					
				| @ -1,14 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OpenIM Server API | ||||
| Documentation=https://github.com/marmotedu/iam/blob/master/init/README.md | ||||
| Description=OPENIM OPENIM API | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-api | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-api --apiconfig=${OPENIM_CONFIG_DIR}/openim-api.yaml | ||||
| 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 | ||||
| EOF | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-cmdutils.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-cmdutils.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM CMDUTILS | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-cmdutils | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-cmdutils | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-cmdutils --config=${OPENIM_CONFIG_DIR}/openim-cmdutils.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
| @ -1,5 +1,5 @@ | ||||
| [Unit] | ||||
| Description=OPENIM CRONTASK | ||||
| Description=OPENIM OPENIM CRONTASK | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
|  | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-msggateway.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-msggateway.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [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 | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-msgtransfer.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-msgtransfer.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM MSGTRANSFER | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-msgtransfer | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-msgtransfer | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-msgtransfer --config=${OPENIM_CONFIG_DIR}/openim-msgtransfer.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-push.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-push.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM PUSH | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-push | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-push | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-push --config=${OPENIM_CONFIG_DIR}/openim-push.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-auth.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-auth.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC AUTH | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-auth | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-auth | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-auth --config=${OPENIM_CONFIG_DIR}/openim-rpc-auth.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-conversation.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-conversation.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC CONVERSATION | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-conversation | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-conversation | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-conversation --config=${OPENIM_CONFIG_DIR}/openim-rpc-conversation.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-friend.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-friend.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC FRIEND | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-friend | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-friend | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-friend --config=${OPENIM_CONFIG_DIR}/openim-rpc-friend.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-group.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-group.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC GROUP | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-group | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-group | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-group --config=${OPENIM_CONFIG_DIR}/openim-rpc-group.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-msg.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-msg.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC MSG | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-msg | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-msg | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-msg --config=${OPENIM_CONFIG_DIR}/openim-rpc-msg.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-third.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-third.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC THIRD | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-third | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-third | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-third --config=${OPENIM_CONFIG_DIR}/openim-rpc-third.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										15
									
								
								deployments/templates/init/openim-rpc-user.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deployments/templates/init/openim-rpc-user.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=OPENIM OPENIM RPC USER | ||||
| Documentation=https://github.com/OpenIMSDK/Open-IM-Server/blob/main/deployment/init/README.md | ||||
| 
 | ||||
| [Service] | ||||
| WorkingDirectory=${OPENIM_DATA_DIR}/openim-rpc-user | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_DATA_DIR}/openim-rpc-user | ||||
| ExecStartPre=/usr/bin/mkdir -p ${OPENIM_LOG_DIR} | ||||
| ExecStart=${OPENIM_INSTALL_DIR}/bin/openim-rpc-user --config=${OPENIM_CONFIG_DIR}/openim-rpc-user.yaml | ||||
| Restart=always | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-api.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-api.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-api | ||||
| description: "This is a description for openim-api" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-cmdutils.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-cmdutils.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-cmdutils | ||||
| description: "This is a description for openim-cmdutils" | ||||
| type: "service" | ||||
| @ -1 +1,3 @@ | ||||
| # OpenIM Cronstask | ||||
| name: openim-crontask | ||||
| description: "This is a description for openim-crontask" | ||||
| type: "service" | ||||
|  | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-msggateway.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-msggateway.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-msggateway | ||||
| description: "This is a description for openim-msggateway" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-msgtransfer.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-msgtransfer.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-msgtransfer | ||||
| description: "This is a description for openim-msgtransfer" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-push.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-push.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-push | ||||
| description: "This is a description for openim-push" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-auth.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-auth.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-auth | ||||
| description: "This is a description for openim-rpc-auth" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-conversation.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-conversation.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-conversation | ||||
| description: "This is a description for openim-rpc-conversation" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-friend.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-friend.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-friend | ||||
| description: "This is a description for openim-rpc-friend" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-group.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-group.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-group | ||||
| description: "This is a description for openim-rpc-group" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-msg.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-msg.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-msg | ||||
| description: "This is a description for openim-rpc-msg" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-third.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-third.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-third | ||||
| description: "This is a description for openim-rpc-third" | ||||
| type: "service" | ||||
							
								
								
									
										3
									
								
								deployments/templates/openim-rpc-user.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployments/templates/openim-rpc-user.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| name: openim-rpc-user | ||||
| description: "This is a description for openim-rpc-user" | ||||
| type: "service" | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user