Le 07/09/2016 23:06, R. G. Newbury a écrit : > On 09/05/2016 05:07 AM, oe Zeff <joe@xxxxxxx> wrote: > >> Subject: Re: unable to start rc-local.service[SOLVED] >> To: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx> >> Message-ID: <57CC87EA.3090508@xxxxxxx> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> On 09/04/2016 01:34 PM, François Patte wrote: >>> > Just unwanted spaces before and after #!/bin/bash >>> > >>> > The script works when executed for itself, but it seems that >>> systemd is >>> > quite supercilious about that spaces and very avaricious to give some >>> > hints about the error encountered! >>> > >>> > Thank you for helping. >> Interesting. I have some blank lines in mine, to improve readability, >> but not there. I'll have to keep that in mind for future reference. >> It's rather like mount insisting that every line in /etc/fstab end in a >> newline, even the last one, but not giving a clear error message if you >> forget it. >> >> And, it's occurred to me that there's a way to get what's needed here >> done that's easier because it doesn't try to make the same change during >> every boot. Alas, I've gotten the impression that my advice isn't >> wanted in this thread, so I'll leave it as an exercise for the reader. > > Lennart Poettering has a hate for rc.local. He discusses that somewhere > in his systemd blog. For whatever reason, he dislikes it and thinks that > no-one should use it, or be able to use it. So you must sacrifice the > correct animal, at the exactly correct time, for it to work. Lol! I don't know who is Lennart Poettering and he can rebuild the world if he has enough time to do that.... I just want to use what exists to have what I need... > > And of course, just as with pulseaudio, systemd does not give meaningful > or useful error messages. > > Since most items in rc.local are run-one-time items, the answer is to > NOT USE SYSTEMD. > > Create your rc.local file, and chmod it u+x, and then add the following > to your (root) crontab: @reboot /etc/rc.d/rc.local > > @reboot in a cron does exactly what it implies: it runs, once at boot > time. See 'man 5 crontab' > > Problem solved without systemd. Hurraah! Does the weather is milder for you like this? Congratulations! Sleep well and have nice dreams. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 8394 5849 http://www.math-info.univ-paris5.fr/~patte
Attachment:
signature.asc
Description: OpenPGP digital signature
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org