systemd: truecrypt -d on shutdown, etc.

view full story

https://bbs.archlinux.org – Hey there,I need a little help with a service file I want to use for unmounting truecrypt containers and devices on shutdown, poweroff & reboot. This is how I got so far:[Unit] Description=Truecrypt unmount on shutdown, poweroff, reboot, system halt Before=shutdown.target systemd-modules-load.service [Service] Type=oneshot ConditionPathExists=/media/truecrypt* ExecStart=/usr/bin/truecrypt -d TimeoutSec=5 StandardInput=tty RemainAfterExit=yes [Install] #WantedBy=shutdown.target reboot.target halt.target poweroff.target RequiredBy=shutdown.target reboot.target halt.target poweroff.targetsy (HowTos)