Revert "Remove tinc.service, it is not necessary."
This reverts commit 0b6f84f96e. Although
systemd does automatically provide a "tinc.slice" when there is only a
tinc@.service template, it doesn't quite work the same way as
tinc.service.
			
			
This commit is contained in:
		
							parent
							
								
									0a6d89acc6
								
							
						
					
					
						commit
						3f6c663a06
					
				
					 2 changed files with 21 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
if WITH_SYSTEMD
 | 
			
		||||
systemddir = @systemd_path@
 | 
			
		||||
dist_systemd_DATA = tinc@.service
 | 
			
		||||
dist_systemd_DATA = tinc.service tinc@.service
 | 
			
		||||
endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										20
									
								
								systemd/tinc.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								systemd/tinc.service
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
# This is a mostly empty service, but allows commands like stop, start, reload
 | 
			
		||||
# to propagate to all tinc@ service instances.
 | 
			
		||||
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Tinc VPN
 | 
			
		||||
Documentation=info:tinc
 | 
			
		||||
Documentation=man:tinc(8) man:tinc.conf(5)
 | 
			
		||||
Documentation=http://tinc-vpn.org/docs/
 | 
			
		||||
After=network.target
 | 
			
		||||
Wants=network.target
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=oneshot
 | 
			
		||||
RemainAfterExit=yes
 | 
			
		||||
ExecStart=/bin/true
 | 
			
		||||
ExecReload=/bin/true
 | 
			
		||||
WorkingDirectory=/etc/tinc
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=multi-user.target
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue