mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// +build !linux,!windows
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package utils
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 安装服务
							 | 
						||
| 
								 | 
							
								func (this *ServiceManager) Install(exePath string, args []string) error {
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 启动服务
							 | 
						||
| 
								 | 
							
								func (this *ServiceManager) Start() error {
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 删除服务
							 | 
						||
| 
								 | 
							
								func (this *ServiceManager) Uninstall() error {
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 |