Bug 77583

Summary: Does not execute local-system-resume
Product: systemd Reporter: merc1984
Component: generalAssignee: systemd-bugs
Status: RESOLVED INVALID QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.