[systemd-devel] [script] Eject CD before shutdown
lennart at poettering.net
Thu Sep 13 09:19:31 PDT 2012
On Thu, 13.09.12 18:04, Philip Müller (philm at manjaro.org) wrote:
> All operations are timed out in systemd by default. You can turn this
> off by pasing TimeoutSec=0.
> However, I'd probably recommend you to define your service a bit
> differently. Add this to [Unit]:
> And just use ExecStart= to spawn your code, drop the ExecStop=.
> And then pull that in from final.target.
> In case you wonder: the charts at the end of this man page might
> explain better where a service like that is positioned:
> Description=LiveMedia Eject Service
Use "Before=final.target" as I suggested, not "Before=unmount.target"
(there is no unmount.target anyway, only umount.target).
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel