Mounts VeraCrypt volumes as a specified user (with sudo), runs fsck on them, and executes an optional per volume custom ruby script.
A simple step towards read only root file system to save preciuos disk read/writes. Mounts /var/log and user homes directories on tmpfs. SETUP: create directory skeletons (see instructions in tmpfs-folders.sh)
Spind down disks before shutdown
- https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal
- https://www.google.it/?gws_rd=ssl#q=systemd%20how%20to%20create%20a%20service
- https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/
install -m 0644 -D -t /usr/local/lib/systemd/system/ /opt/systemd-units/name.servicesystemctl enable name.servicesystemctl daemon-reload- after some changes
- http://www.freedesktop.org/software/systemd/man/systemd.service.html
- http://www.freedesktop.org/software/systemd/man/systemd.unit.html
- http://www.freedesktop.org/software/systemd/man/systemd.special.html
- http://www.freedesktop.org/software/systemd/man/bootup.html
Note that DefaultDependencies = true implies:
Requires = sysinit.targetAfter = sysinit.target basic.targetConflicts = shutdown.targetBefore = shutdown.target
[Unit]
DefaultDependencies = no
Requires = sysinit.target local-fs.target
After = sysinit.target local-fs.target
Before = basic.target
[Install]
WantedBy = basic.targetType = oneshot
RemainAfterExit = yesjournalctlcat /var/log/boot.log- graphs:
systemd-analyze plot > boot-chart.svgsystemd-analyze dot | dot -Tsvg > boot-full.svgsystemd-analyze --order dot | dot -Tsvg > boot-order.svgsystemd-analyze --require dot | dot -Tsvg > boot-require.svg