[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: rc.local and systemd



Am 18.05.2015 um 22:01 schrieb Rainer Dorsch:

> root@nanette:~# systemctl status rc-local.service 
> ● rc-local.service - /etc/rc.local Compatibility
>    Loaded: loaded (/lib/systemd/system/rc-local.service; static)
>    Active: failed (Result: exit-code) since Mon 2015-05-18 14:29:04 CEST; 7h 
> ago
> 
> May 18 14:29:02 nanette rc.local[741]: Loaded 750 prior measurements
> May 18 14:29:04 nanette rc.local[741]: Error opening terminal: unknown.
> May 18 14:29:04 nanette rc.local[741]: RAPL device for cpu 0
> May 18 14:29:04 nanette rc.local[741]: RAPL device for cpu 0
> May 18 14:29:04 nanette rc.local[741]: RAPL device for cpu 0
> May 18 14:29:04 nanette systemd[1]: rc-local.service: control process exited, 
> code=exited status=1
> May 18 14:29:04 nanette systemd[1]: Failed to start /etc/rc.local 
> Compatibility.
> May 18 14:29:04 nanette systemd[1]: Unit rc-local.service entered failed 
> state.
> root@nanette:~# 


So, as you can see, /etc/rc.local *is* run.
As you can also see, powertop exits with a non-zero return code. Since
/etc/rc.local uses "set -e", your script exits at this point and the
service is marked as failed.

Everything working as expected from the systemd side.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: