Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Richard Maw
On Mon, Nov 02, 2015 at 09:04:31AM +0100, Lennart Poettering wrote: > On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: > > > I have a simple bash script that I would like to have a user service > > file run with an argument when the system enters a sleep or > > hibernation state but

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Mantas Mikulėnas
On Mon, Nov 2, 2015 at 3:34 PM, Richard Maw wrote: > On Mon, Nov 02, 2015 at 09:04:31AM +0100, Lennart Poettering wrote: > > On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: > > > > > I have a simple bash script that I would like to have a user service >

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Lennart Poettering
On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: > I have a simple bash script that I would like to have a user service > file run with an argument when the system enters a sleep or > hibernation state but as I understand it, user service units do not > use the sleep.target. The

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Richard Maw
On Mon, Nov 02, 2015 at 04:11:14PM +0200, Mantas Mikulėnas wrote: > On Mon, Nov 2, 2015 at 3:34 PM, Richard Maw > wrote: > > > On Mon, Nov 02, 2015 at 09:04:31AM +0100, Lennart Poettering wrote: > > > On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: > >

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-10-29 Thread Simon McVittie
On 29/10/15 18:52, John wrote: > This is an interesting idea but I would like to learn about user units and > sleep mode :) I think the intention is that per-user code deals with sleep by having a service (daemon) that registers to inhibit suspend; when it is notified that systemd would like to

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-10-29 Thread John
> From: David Timothy Strauss >To: John ; "systemd-devel@lists.freedesktop.org" > >Sent: Wednesday, October 28, 2015 7:54 PM >Subject: Re: [systemd-devel] Help writing a user

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-10-29 Thread John
- Original Message - > From: Simon McVittie > To: systemd-devel@lists.freedesktop.org > Cc: > Sent: Thursday, October 29, 2015 3:27 PM > Subject: Re: [systemd-devel] Help writing a user service file that will exec > a command upon system sleep > > On

[systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-10-28 Thread John
I have a simple bash script that I would like to have a user service file run with an argument when the system enters a sleep or hibernation state but as I understand it, user service units do not use the sleep.target. The goal is to have the following run before the system goes into