[arch-general] rc.local.shutdown equivalent in systemd

Rodrigo Rivas rodrigorivascosta at gmail.com
Tue Jul 24 06:38:34 EDT 2012


On Tue, Jul 24, 2012 at 4:31 AM, James Nelson <jnlson at gmx.com> wrote:

> On 07/23/12 20:10, Manolo Martínez wrote:
>
[Unit]
> Description=Unload module before shutdown
> Before=shutdown.target
>
> [Service]
> Type=oneshot
> ExecStart=/usr/bin/rmmod modulename
>
> [Install]
> WantedBy=multi-user.target
>
> Haven't tried it, might not work, no guarantees, etc..
>

Shouldn't it be just

[Unit]
Description=Unload module before shutdown

[Service]
Type=oneshot
ExecStart=/usr/bin/rmmod modulename

[Install]
WantedBy=shutdown.target

Without multi-user.target or Before=?


More information about the arch-general mailing list