mirror of
				https://git.proxmox.com/git/systemd
				synced 2025-11-04 09:23:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			420 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			420 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Test for ReadOnlyPaths=
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=oneshot
 | 
						|
# This should work, as we explicitly disable the effect of ReadOnlyPaths=
 | 
						|
ExecStart=+/bin/sh -c 'touch /tmp/thisisasimpletest'
 | 
						|
# This should also work, as we do not disable the effect of ReadOnlyPaths= but invert the exit code
 | 
						|
ExecStart=/bin/sh -x -c '! touch /tmp/thisisasimpletest'
 | 
						|
ExecStart=+/bin/sh -c 'rm /tmp/thisisasimpletest'
 | 
						|
ReadOnlyPaths=/tmp
 |