添加一个service示例
This commit is contained in:
		
							parent
							
								
									760caffbcf
								
							
						
					
					
						commit
						0ac4b5cc54
					
				
							
								
								
									
										15
									
								
								linux/transm.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								linux/transm.service
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=transm(taynpg)
 | 
				
			||||||
 | 
					After=network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=simple
 | 
				
			||||||
 | 
					User=typ
 | 
				
			||||||
 | 
					Group=typ
 | 
				
			||||||
 | 
					WorkingDirectory=/home/typ/program/transm
 | 
				
			||||||
 | 
					ExecStart=/home/typ/program/transm/transms 9898
 | 
				
			||||||
 | 
					ExecReload=/bin/kill -s KILL $MAINPID
 | 
				
			||||||
 | 
					Restart=never
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user