TIL · systemd
- Make a service go down together with a disk's mountBindsTo + Wants couples the service's lifecycle to the mount's.
- Create a systemd service from scratchThe minimum to turn a command into a managed service.
- add-wants fails on a .mount unit generated from fstabGenerated units are read-only; use a drop-in.