Bug 77583 - Does not execute local-system-resume
Summary: Does not execute local-system-resume
Status: RESOLVED INVALID
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 16:53 UTC by merc1984
Modified: 2014-04-18 17:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description merc1984 2014-04-17 16:53:46 UTC
When waking the system from S3 sleep, the local-system-resume service gives errors and does not execute.  No mention of the resume service in /var/log/messages .

[code][Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=simple
ExecStart=echo 10 | tee /sys/class/leds/asus::kbd_backlight/brightness

[Install]
WantedBy=suspend.target[/code]

[code]# systemctl status local-system-resume
local-system-resume.service - Local system resume actions                                                                                                                                                                                                                     
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

Apr 11 23:15:41 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 12 07:37:43 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 12 22:59:19 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 13 23:31:20 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 14 22:46:17 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 15 20:52:13 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 15 23:04:28 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 16 10:43:17 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.
Apr 16 22:48:53 hydra systemd[1]: Cannot add dependency job for unit local-system-resume.service, ignoring: Unit local-system-resume.service failed to load: Invalid argument. See system logs and 'systemctl status local-system-resume.service' for details.[/code]
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-04-17 23:54:15 UTC
Please see the documentation for ExecStart [1], it does not accept shell scripts.

[1] http://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart=
Comment 2 merc1984 2014-04-18 17:04:52 UTC
Huh?  'echo' is an internal command.

And I have other service files which run shell scripts successfully.
Comment 3 Zbigniew Jedrzejewski-Szmek 2014-04-18 17:15:33 UTC
Did you read the manual section page I linked to?


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.