firefox-backup/systemd-templates/firefox-backup-.service

16 lines
398 B
SYSTEMD
Raw Permalink Normal View History

2022-03-14 21:45:57 +01:00
[Unit]
Description=Backup PH_USER's Firefox profile before shutdown
DefaultDependencies=no
Before=halt.target shutdown.target reboot.target poweroff.target
# A drop-in with Requires=X.mount may come handy if the target is not the root volume
[Service]
Type=oneshot
User=PH_USER
ExecStart=/usr/bin/true
ExecStop=PH_DIRECTORY/firefox-backup.sh
RemainAfterExit=yes
[Install]
WantedBy=default.target