On Monday 27 May 2019 05:11:29 am Reco wrote: > Hi. > > On Sun, May 26, 2019 at 05:45:56PM -0400, Gene Heskett wrote: > > On Sunday 26 May 2019 12:13:38 pm john doe wrote: > > > On 5/26/2019 5:32 PM, Gene Heskett wrote: > > > > Greetings all; > > > > > > > > New stretch install about 2 weeks ago, cleaning up the remains. > > > > Fresh disk, so no leftovers. But lots of stuff has been copied > > > > over from the wheezy disk since > > > > > > > > I have spamassassin enabled in my rc5.d, and I start heyu engine > > > > and heyu monitor in my rc.local for several years , but neither > > > > one is actually being started now. > > > > > > > > I can restart spamassassin once logged it, ditto for heyu and > > > > friends. > > > > > > > > Why don't they start when they're supposed to? > > > > > > Look at the service 'rc.local'.: > > > > > > $ systemctl status/enable rc.local > > > > hummmmm....: > > root@coyote:GenesAmandaHelper-0.61$ systemctl status rc.local > > ... > > > May 25 12:03:03 coyote rc.local[884]: read: Connection reset by peer > > ... > > > None of which gives me the faintest clue whats wrong with it. > > It does for me. > > First, > > > root@coyote:GenesAmandaHelper-0.61$ cat /etc/rc.local > > #!/bin/sh -e > > Any execution error will terminate the script. > > > Second, > > > # mount the sshfs shares. Suggested way didn't work, > > # so changed syntax to this, which does > > su gene -c "sshfs gene@shop:/ /sshnet/shop" > > It fails here, or at any of the later sshfs invocations. > Either your resolver is broken or remote sshd does not function. > > Note - you're doing it wrong by configuring per-user mounts at > systemwide level. They invented systemd user-level services just for > that. humm how about anls -l /sshnet/* gene@coyote:~$ ls -l /sshnet/* /sshnet/GO704: total 96 drwxr-xr-x 1 root root 4096 Jun 3 2018 bin drwxr-xr-x 1 root root 4096 Mar 23 17:51 boot drwxr-xr-x 1 root root 3400 Apr 28 16:22 dev drwxr-xr-x 1 root root 12288 May 23 22:29 etc drwxr-xr-x 1 backup backup 4096 Oct 6 2015 GenesAmandaHelper-0.61 drwxr-xr-x 1 root root 4096 Oct 5 2015 home lrwxrwxrwx 1 root root 35 Oct 27 2017 initrd.img -> /boot/initrd.img-3.4-9-rtai-686-pae drwxr-xr-x 1 root root 4096 Jun 20 2017 lib drwx------ 1 root root 16384 Oct 27 2017 lost+found drwxr-xr-x 1 root root 4096 Oct 27 2018 media drwxr-xr-x 1 root root 4096 Nov 10 2015 opt dr-xr-xr-x 1 root root 0 Mar 23 17:53 proc drwx------ 1 root root 4096 Sep 25 2017 root drwxr-xr-x 1 root root 1000 May 27 08:09 run drwxr-xr-x 1 root root 4096 Jun 3 2018 sbin drwxr-xr-x 1 gene gene 4096 Oct 27 2017 sshnet dr-xr-xr-x 1 root root 0 Mar 23 17:53 sys drwxrwxrwt 1 root root 4096 May 27 13:17 tmp drwxr-xr-x 1 root root 4096 Mar 23 17:48 usr drwxr-xr-x 1 root root 4096 Oct 28 2017 var lrwxrwxrwx 1 root root 32 Oct 27 2017 vmlinuz -> /boot/vmlinuz-3.4-9-rtai-686-pae
/sshnet/lathe: total 108 drwxr-xr-x 1 root root 4096 Jun 3 2018 bin drwxr-xr-x 1 root root 1024 Feb 5 2017 boot drwxr-xr-x 1 root root 3340 Apr 28 10:41 dev drwxr-xr-x 1 root root 12288 May 23 22:37 etc drwxr-xr-x 1 backup disk 4096 May 6 2015 GenesAmandaHelper-0.61 drwxr-xr-x 1 root root 4096 May 8 2015 home lrwxrwxrwx 1 root root 35 May 6 2015 initrd.img -> /boot/initrd.img-3.4-9-rtai-686-pae drwxr-xr-x 1 root root 4096 Jun 24 2017 lib drwx------ 1 root root 16384 May 6 2015 lost+found drwxr-xr-x 1 root root 4096 Jul 3 2014 media drwxr-xr-x 1 root root 4096 Apr 19 2014 mnt drwxr-xr-x 1 root root 0 Mar 7 16:38 net drwxr-xr-x 1 root root 4096 Jul 3 2014 opt dr-xr-xr-x 1 root root 0 Mar 7 16:38 proc drwx------ 1 root root 4096 May 7 2015 root drwxr-xr-x 1 root root 920 May 23 22:36 run drwxr-xr-x 1 root root 4096 Jun 3 2018 sbin drwxr-xr-x 1 root root 4096 Jun 10 2012 selinux drwxr-xr-x 1 root root 4096 Jul 3 2014 srv drwxr-xr-x 1 gene gene 4096 Sep 24 2015 sshnet dr-xr-xr-x 1 root root 0 Mar 7 16:38 sys drwxrwxrwt 1 root root 4096 May 27 13:34 tmp drwxr-xr-x 1 root root 4096 May 6 2015 usr drwxr-xr-x 1 root root 4096 May 6 2015 var lrwxrwxrwx 1 root root 31 May 6 2015 vmlinuz -> boot/vmlinuz-3.4-9-rtai-686-pae /sshnet/picnc: total 100 drwxr-xr-x 1 root root 4096 Apr 26 21:09 bin drwxr-xr-x 1 root root 3072 Dec 31 1969 boot -rw-r--r-- 1 root root 4 Nov 15 2016 debian-binary drwxr-xr-x 1 root root 3640 May 17 16:57 dev drwxr-xr-x 1 root root 12288 May 17 16:52 etc drwxr-xr-x 1 backup backup 4096 Jun 17 2017 GenesAmandaHelper-0.61 drwxr-xr-x 1 root root 4096 Apr 10 2017 home drwxr-xr-x 1 root root 4096 Sep 4 2017 lib drwx------ 1 root root 16384 Apr 10 2017 lost+found drwxr-xr-x 1 root root 4096 Aug 1 2018 media drwxr-xr-x 1 root root 4096 Apr 10 2017 mnt drwxr-xr-x 1 root root 4096 Jun 2 2017 opt dr-xr-xr-x 1 root root 0 Dec 31 1969 proc drwx------ 1 root root 4096 Nov 11 2018 root drwxr-xr-x 1 root root 720 May 17 16:52 run drwxr-xr-x 1 root root 4096 Apr 26 21:10 sbin drwxr-xr-x 1 root root 4096 Apr 10 2017 srv drwxr-xr-x 1 gene gene 4096 Jun 7 2017 sshnet dr-xr-xr-x 1 root root 0 Dec 31 1969 sys drwxrwxrwt 1 root root 4096 May 27 13:17 tmp drwxr-xr-x 1 root root 4096 Jun 2 2017 usr drwxr-xr-x 1 root root 4096 Sep 25 2018 var /sshnet/redpitaya: total 0 /sshnet/rock64: total 88 drwxr-xr-x 1 root root 4096 May 18 15:48 bin drwxr-xr-x 1 root root 4096 May 22 15:05 boot drwxr-xr-x 1 root root 3800 May 22 15:05 dev drwxr-xr-x 1 root root 4096 May 23 22:51 etc drwxr-xr-x 1 root root 4096 May 18 15:40 home drwxr-xr-x 1 root root 4096 May 18 15:47 lib drwx------ 1 root root 16384 Feb 10 05:23 lost+found drwxr-xr-x 1 root root 4096 Feb 7 10:24 media drwxr-xr-x 1 root root 4096 Feb 7 10:24 mnt drwxr-xr-x 1 root root 4096 Feb 7 10:24 opt dr-xr-xr-x 1 root root 0 Dec 31 1969 proc drwx------ 1 root root 4096 May 18 17:03 root drwxr-xr-x 1 root root 720 May 27 09:46 run drwxr-xr-x 1 root root 4096 May 18 15:50 sbin drwxrwxr-x 1 root root 4096 Feb 10 05:19 selinux drwxr-xr-x 1 root root 4096 Feb 7 10:24 srv dr-xr-xr-x 1 root root 0 May 22 15:05 sys drwxrwxrwt 1 root root 280 May 27 13:45 tmp drwxr-xr-x 1 root root 4096 Feb 7 10:24 usr drwxr-xr-x 1 root root 4096 Feb 10 05:19 var drwxr-xr-x 1 gene gene 4096 Jan 7 16:27 workspace /sshnet/Sheldon: total 0 /sshnet/shop: total 108 drwxr-xr-x 1 root root 4096 Jan 16 10:38 bin drwxr-xr-x 1 root root 4096 Feb 22 19:57 boot drwxr-xr-x 1 root root 3260 May 21 19:13 dev drwxr-xr-x 1 root root 12288 May 23 22:39 etc drwxr-xr-x 1 root root 4096 May 18 2015 GenesAmandaHelper-0.61 drwxr-xr-x 1 root root 4096 May 19 2015 home lrwxrwxrwx 1 root root 35 May 18 2015 initrd.img -> /boot/initrd.img-3.4-9-rtai-686-pae drwxr-xr-x 1 root root 4096 Jun 24 2017 lib drwx------ 1 root root 16384 May 18 2015 lost+found drwxr-xr-x 1 root root 4096 May 7 2018 media drwxr-xr-x 1 root root 4096 Apr 19 2014 mnt drwxr-xr-x 1 root root 0 Mar 16 19:45 net drwxr-xr-x 1 root root 4096 Jul 3 2014 opt dr-xr-xr-x 1 root root 0 Mar 16 19:44 proc drwx------ 1 root root 4096 May 6 2018 root drwxr-xr-x 1 root root 920 May 23 22:38 run drwxr-xr-x 1 root root 4096 Jun 3 2018 sbin drwxr-xr-x 1 root root 4096 Jun 10 2012 selinux drwxr-xr-x 1 root root 4096 Jul 3 2014 srv drwxr-xr-x 1 gene gene 4096 Sep 24 2015 sshnet dr-xr-xr-x 1 root root 0 Mar 16 19:44 sys drwxrwxrwt 1 root root 4096 May 27 13:17 tmp drwxr-xr-x 1 root root 4096 May 19 2015 usr drwxr-xr-x 1 root root 4096 May 21 2015 var lrwxrwxrwx 1 root root 31 May 18 2015 vmlinuz -> boot/vmlinuz-3.4-9-rtai-686-pae /sshnet/vna: total 0 =================== that part Just Works. > Also, > > > # Now, udev is being a cast iron bitch, > > But overriding it this way will only work until the first 'udevadm > trigger' or USB device hotplug. > They invented 'dialout' group (and use it by default) to avoid such > kludges, consider using it. So I should make heyu a member of group dialout? It is not now: gene@coyote:~$ grep dialout /etc/group dialout:x:20:gene > > And, > > > # Now, need some heyu stuff run > > su gene -c "/usr/local/bin/heyu engine &" > > su gene -c "/usr/local/bin/heyu monitor &" > > this just cries 'put me into systemd unit'. > Abusing shell's background in rc.local is good for all those > enterprisey "i-dont-know-what-im-doing" devopses. Don't be like them. And the docs on how to do that are where? > > In short, everything in your rc.local does not belong there. > > Reco Thanks Reco. 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>