Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #209341
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: reboot stuff doesn't start |
| Date | 2019-05-28 20:30 +0200 |
| Message-ID | <y2P1g-65t-5@gated-at.bofh.it> (permalink) |
| References | <y23pD-1Ad-1@gated-at.bofh.it> <y2MG5-4um-9@gated-at.bofh.it> <y2O5b-5vb-1@gated-at.bofh.it> |
| Organization | none,nada,zip |
On Tuesday 28 May 2019 01:23:45 pm Gene Heskett wrote: > On Tuesday 28 May 2019 11:53:26 am Reco wrote: > > Hi. > > > > On Tue, May 28, 2019 at 10:53:04AM -0400, Greg Wooledge wrote: > > > On Mon, May 27, 2019 at 12:11:29PM +0300, Reco wrote: > > > > On Sun, May 26, 2019 at 05:45:56PM -0400, Gene Heskett wrote: > > > > > root@coyote:GenesAmandaHelper-0.61$ cat /etc/rc.local > > > > > #!/bin/sh -e > > > > > > > > Any execution error will terminate the script. > > > > > > The blame is on Debian for that one. That's what Debian put in > > > the default /etc/rc.local file in every release up to jessie. > > > (They "fixed" this in stretch by not having a default > > > /etc/rc.local file at all, but if you upgraded to stretch, you > > > still have the old default file.) > > > > I disagree. /etc/rc.local is a part of init (whenever it's sysvinit > > or systemd or upstart), being run as root. If something goes wrong > > there - it should fail as verbose as possible (yep, journald is > > worthless in this regard). Helps with diagnostics and all that. > > I'll sure as hell 2nd that. If anything, rc.local should stack the > errors and keep on trucking, and when its out of things to do, then > spit out the errors if any, in the order encountered, to the syslog. > > > > Debian's policy for developers is to use -e with all shell scripts > > > (horrible!), > > > > On the contrary. Helps with error catching, limits the damage (all > > package scripts are executed as root), promotes at least some kind > > of code quality. > > Side effects may include non-removing packages (failed prerm > > script), of course, but they have bugs.debian.org for these cases. > > > > > but inflicting that same policy on end users is not wise. > > > > End users can remove that '-e' flag if they believe it's > > problematic. rc.local is a simple shell script, open to all kinds of > > abuse including this one. > > I assume the -e is a bash option? I just rescanned the man page > without find a reference other than a test for file -e=exists > filename. > > It is in the shebang line, so what does that do when its in that > position. > And at that point in composing that reply, the keyboard went dead. I thought that was cron, calling hpfax, and finding it had nothing to do, so it locks up hid-common, so I renamed hpfax to hpfox last week, figuring that would disable that scared bull in a china shop. But in looking over the boot log just now, I find hpfox running! Pardon my language but if I've renamed it, how the hell is the system finding it to run it? from the syslog: in time order but much elided May 28 13:47:40 coyote systemd[949]: Starting D-Bus User Message Bus Socket. [...] May 28 13:47:41 coyote rc.local[842]: HEYU: The file /usr/local/var/tmp/heyu/heyu.out.ttyUSB0 does not exist or is not writable. [...] May 28 13:47:42 coyote hp[994]: io/hpmud/pp.c 627: unable to read device-id ret=-1 [...] May 28 13:47:43 coyote rc.local[842]: read: Connection reset by peer May 28 13:47:43 coyote /hpfox: [999]: error: Failed to create /var/spool/cups/tmp/.hplip [...] May 28 13:47:46 coyote systemd[1]: Started Perl-based spam filter using text analysis. Since systemd started spamassassin, I can take that back out of rc.local. I'll do that and reboot again, about 5 times since my last reply in this thread. Since I don't use hplip, no hp printers about, how do I use systemctl to disable its even starting? Thanks, but comment on the log snippets if you can. > > Reco > > Cheers, Gene Heskett Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-26 17:40 +0200
Re: reboot stuff doesn't start john doe <johndoe65534@mail.com> - 2019-05-26 18:20 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-26 23:50 +0200
Re: reboot stuff doesn't start Curt <curty@free.fr> - 2019-05-27 11:00 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-27 20:00 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-27 11:20 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-27 20:10 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-27 21:40 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-28 00:00 +0200
Re: reboot stuff doesn't start Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-28 17:00 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-28 18:00 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-28 19:30 +0200
Re: reboot stuff doesn't start Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-28 19:40 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-28 19:50 +0200
Re: reboot stuff doesn't start Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-28 20:00 +0200
Re: reboot stuff doesn't start Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-28 19:40 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-28 19:40 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-28 23:00 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-29 06:30 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-29 12:10 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-29 12:30 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-29 12:50 +0200
Re: reboot stuff doesn't start Reco <recoverym4n@enotuniq.net> - 2019-05-29 12:50 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-29 13:00 +0200
Re: reboot stuff doesn't start Brian <ad44@cityscape.co.uk> - 2019-05-29 20:00 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-28 20:30 +0200
Re: reboot stuff doesn't start Brian <ad44@cityscape.co.uk> - 2019-05-28 21:40 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-29 03:50 +0200
Re: reboot stuff doesn't start Brian <ad44@cityscape.co.uk> - 2019-05-29 14:30 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-29 17:10 +0200
Re: reboot stuff doesn't start mick crane <mick.crane@gmail.com> - 2019-05-29 17:20 +0200
Re: reboot stuff doesn't start Roberto C. Sánchez <roberto@debian.org> - 2019-05-29 17:30 +0200
Re: reboot stuff doesn't start Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-29 17:30 +0200
Re: reboot stuff doesn't start Brian <ad44@cityscape.co.uk> - 2019-05-26 21:40 +0200
Re: reboot stuff doesn't start Gene Heskett <gheskett@shentel.net> - 2019-05-27 00:10 +0200
Re: reboot stuff doesn't start Felix Miata <mrmazda@earthlink.net> - 2019-05-29 20:40 +0200
csiph-web