Fwd: rc.local and systemd
Michael Biebl
biebl at debian.org
Mon May 18 21:21:42 BST 2015
Am 18.05.2015 um 22:01 schrieb Rainer Dorsch:
> root at 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 at 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150518/b99684c9/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list