mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-01 07:28:33 +02:00
init
This commit is contained in:
14
playbooks/files/services/lcd_control_restart.service
Normal file
14
playbooks/files/services/lcd_control_restart.service
Normal file
@ -0,0 +1,14 @@
|
||||
[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
|
Reference in New Issue
Block a user