fix(systemd): don't use system-only values for user unit
This commit is contained in:
		
							parent
							
								
									f0049c7f06
								
							
						
					
					
						commit
						7bc2193d09
					
				| @ -34,9 +34,9 @@ ExecReload=/bin/kill -USR1 $MAINPID | |||||||
| # Use private /tmp and /var/tmp, which are discarded after this stops. | # Use private /tmp and /var/tmp, which are discarded after this stops. | ||||||
| PrivateTmp=true | PrivateTmp=true | ||||||
| # Use a minimal /dev | # Use a minimal /dev | ||||||
| ;PrivateDevices=true | PrivateDevices=true | ||||||
| # Hide /home, /root, and /run/user. Nobody will steal your SSH-keys. | # Hide /home, /root, and /run/user. Nobody will steal your SSH-keys. | ||||||
| ProtectHome=true | ;ProtectHome=true | ||||||
| # Make /usr, /boot, /etc and possibly some more folders read-only. | # Make /usr, /boot, /etc and possibly some more folders read-only. | ||||||
| ProtectSystem=full | ProtectSystem=full | ||||||
| # ... except for a few because we want a place for config, logs, etc | # ... except for a few because we want a place for config, logs, etc | ||||||
| @ -61,4 +61,5 @@ NoNewPrivileges=true | |||||||
| ; NoNewPrivileges=true | ; NoNewPrivileges=true | ||||||
| 
 | 
 | ||||||
| [Install] | [Install] | ||||||
| WantedBy=multi-user.target | # For userspace service | ||||||
|  | WantedBy=default.target | ||||||
|  | |||||||
| @ -62,6 +62,6 @@ NoNewPrivileges=true | |||||||
| 
 | 
 | ||||||
| [Install] | [Install] | ||||||
| # For system-level service | # For system-level service | ||||||
| ;WantedBy=multi-user.target | WantedBy=multi-user.target | ||||||
| # For userspace service | # For userspace service | ||||||
| WantedBy=default.target | ;WantedBy=default.target | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user