Re: [systemd-devel] How to spin down a disc with systemd?

2014-05-01 Thread Marcin Kocur
W dniu 30.04.2014 13:02, Lennart Poettering pisze: On Wed, 30.04.14 01:02, Marcin Kocur (marcin2...@gmail.com) wrote: Hello all, I wrote a service /etc/systemd/system/disable-2nd-hdd.service. I have 2 HDD's where one of them doesn't need to work all the time. So I thought it'd be cool to shut

Re: [systemd-devel] How to spin down a disc with systemd?

2014-04-30 Thread poma
On 30.04.2014 13:02, Lennart Poettering wrote: > On Wed, 30.04.14 01:02, Marcin Kocur (marcin2...@gmail.com) wrote: > >> Hello all, >> >> I wrote a service /etc/systemd/system/disable-2nd-hdd.service. I >> have 2 HDD's where one of them doesn't need to work all the time. So >> I thought it'd be co

Re: [systemd-devel] How to spin down a disc with systemd?

2014-04-30 Thread Lennart Poettering
On Wed, 30.04.14 01:02, Marcin Kocur (marcin2...@gmail.com) wrote: > Hello all, > > I wrote a service /etc/systemd/system/disable-2nd-hdd.service. I > have 2 HDD's where one of them doesn't need to work all the time. So > I thought it'd be cool to shut it down after 30 minutes of > inactivity (th

[systemd-devel] How to spin down a disc with systemd?

2014-04-29 Thread Marcin Kocur
Hello all, I wrote a service /etc/systemd/system/disable-2nd-hdd.service. I have 2 HDD's where one of them doesn't need to work all the time. So I thought it'd be cool to shut it down after 30 minutes of inactivity (the disc isn't mounted when system starts): /usr/bin/hdparm -S 241 /dev/sdb