mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-11-04 03:20:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			354 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			354 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Run my custom task at shutdown only
 | 
						|
DefaultDependencies=no
 | 
						|
Before=poweroff.target halt.target shutdown.target reboot.target
 | 
						|
Requires=poweroff.target
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=oneshot
 | 
						|
ExecStartPre=systemctl stop lcd_control.service
 | 
						|
ExecStart=/usr/bin/python3 /usr/bin/lcd_control_restart.py
 | 
						|
RemainAfterExit=yes
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=shutdown.target |