[Unit] Description=Run local commands after boot ConditionFileIsExecutable=/usr/bin/local.sh [Service] Type=oneshot # below is needed otherwise ExecStop would execute right after start and unmount RemainAfterExit=Yes ExecStart=/usr/bin/local.sh ExecStop=/usr/bin/umount /mnt/mac-bind [Install] WantedBy=multi-user.target