You are not logged in.

#1 2013-12-07 18:01:03

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Systemctl enable suspend@user fails

Hi all,

I'm trying to add a hook that runs on suspend-to-ram, and am following these instructions:
https://wiki.archlinux.org/index.php/Po … leep_hooks

To enable it for user "lefty," I try to run

# systemctl enable suspend@lefty 

but I get this error:

Failed to issue method call: No such file or directory

The same thing happens if I try

# systemctl enable suspend@user

I feel like I'm probably missing something. Any idea what it is?
Thanks in advance!

-LeftyAce

Offline

#2 2013-12-07 18:42:36

dazemc
Member
From: Seattle, Washington, USA
Registered: 2013-03-02
Posts: 64

Re: Systemctl enable suspend@user fails

You have to create the script...
Use your preferred editor (nano)
copy and paste the script to
/etc/systemd/system/suspend@.service

Heads up...you might want to enable the resume service too
I don't know that's what I did

Offline

#3 2013-12-08 05:33:08

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Re: Systemctl enable suspend@user fails

Thanks dazemc, that did the trick.

In this case I don't need a resume action, I was trying to tell gpg-agent to drop cached passphrases as I suspend the machine, and now it works great!

-Lefty

Offline

Board footer

Powered by FluxBB