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

2012-07-24 Thread Genes MailLists
On 07/24/2012 06:38 AM, Rodrigo Rivas wrote: 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=? In this above approach - can you be cert

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

2012-07-24 Thread Manolo Martínez
On 07/24/12 at 12:44pm, Tom Gundersen wrote: > On Tue, Jul 24, 2012 at 12:38 PM, Rodrigo Rivas > wrote: > > On Tue, Jul 24, 2012 at 4:31 AM, James Nelson wrote: > > > >> On 07/23/12 20:10, Manolo Martínez wrote: > >> > > [Unit] > >> Description=Unload module before shutdown > >> Before=shutdown.t

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

2012-07-24 Thread Tom Gundersen
On Tue, Jul 24, 2012 at 12:38 PM, Rodrigo Rivas wrote: > On Tue, Jul 24, 2012 at 4:31 AM, James Nelson 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/rmm

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

2012-07-24 Thread Rodrigo Rivas
On Tue, Jul 24, 2012 at 4:31 AM, James Nelson 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

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

2012-07-23 Thread James Nelson
On 07/23/12 20:10, Manolo Martínez wrote: Hello, I've decided to try systemd and see for myself. Anyway, I need to remove a module before shutdown, which rc.local.shutdown did nicely for me. I know there is an initscripts-systemd packages that would allow me to keep using rc.local.shutdown, but

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

2012-07-23 Thread Genes MailLists
On 07/23/2012 09:10 PM, Manolo Martínez wrote: Hence my question: what's the systemd native way to do stuff (in my case, remove a module) before shutdown? You might try something like this (untested as I am not currently using systemd)- I'm not sure if you need the Before= since your "stu