mirror of
				https://gitea.blesmrt.net/mikaela/shell-things.git
				synced 2025-10-31 01:17:20 +01:00 
			
		
		
		
	systemd/user: introduce mullvad-connect.service
This commit is contained in:
		
							parent
							
								
									9f40319c85
								
							
						
					
					
						commit
						c8ee834b23
					
				| @ -1,6 +1,7 @@ | ||||
| [Unit] | ||||
| Description=IPFS daemon | ||||
| After=network.target | ||||
| After=network.target mullvad-connect.service | ||||
| Wants=mullvad-connect.service | ||||
| 
 | ||||
| # IMPORTANT! If you are running on a VPS/dedicated/similar | ||||
| # `ipfs init --profile=server` or immediately after setting it up | ||||
|  | ||||
							
								
								
									
										15
									
								
								conf/systemd/user/mullvad-connect.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								conf/systemd/user/mullvad-connect.service
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| [Unit] | ||||
| Description=Connect Mullvad VPN on user login | ||||
| After=network-online.target dbus.socket | ||||
| Wants=network-online.target dbus.socket | ||||
| 
 | ||||
| [Service] | ||||
| Type=forking | ||||
| ExecStartPre=sleep 60 | ||||
| ExecStart=mullvad connect | ||||
| # ExecStop runs after forking leading into immediate disconnect! | ||||
| TimeOutSec=infinity | ||||
| Restart=on-failure | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=default.target | ||||
| @ -1,5 +1,7 @@ | ||||
| [Unit] | ||||
| Description=A Headless Bittorrent client using rb_libtorrent | ||||
| After=mullvad-connect.service | ||||
| Wants=mullvad-connect.service | ||||
| 
 | ||||
| [Service] | ||||
| Type=simple | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user