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

Re: reboot stuff doesn't start



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
● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor 
preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: failed (Result: exit-code) since Sat 2019-05-25 12:03:03 EDT; 
1 day 5h ago
  Process: 884 ExecStart=/etc/rc.local start (code=exited, 
status=1/FAILURE)

May 25 12:03:03 coyote su[1224]: + ??? root:gene
May 25 12:03:03 coyote su[1224]: pam_unix(su:session): session opened for 
user gene by (uid=0)
May 25 12:03:03 coyote su[1238]: Successful su for gene by root
May 25 12:03:03 coyote su[1238]: + ??? root:gene
May 25 12:03:03 coyote su[1238]: pam_unix(su:session): session opened for 
user gene by (uid=0)
May 25 12:03:03 coyote rc.local[884]: read: Connection reset by peer
May 25 12:03:03 coyote systemd[1]: rc-local.service: Control process 
exited, code=exited status=1
May 25 12:03:03 coyote systemd[1]: Failed to start /etc/rc.local 
Compatibility.
May 25 12:03:03 coyote systemd[1]: rc-local.service: Unit entered failed 
state.
May 25 12:03:03 coyote systemd[1]: rc-local.service: Failed with 
result 'exit-code'.

None of which gives me the faintest clue whats wrong with it.  So:
root@coyote:GenesAmandaHelper-0.61$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#

# mount the sshfs shares. Suggested way didn't work,
# so changed syntax to this, which does
su gene -c "sshfs gene@shop:/ /sshnet/shop"
su gene -c "sshfs gene@lathe:/ /sshnet/lathe"
su gene -c "sshfs gene@GO704:/ /sshnet/GO704"
#su gene -c "sshfs gene@Sheldon:/ /sshnet/Sheldon"
su gene -c "sshfs gene@rock64:/ /sshnet/rock64"
su gene -c "sshfs pi@picnc:/ /sshnet/picnc"

# Now, udev is being a cast iron bitch, so lets see if we can outwit udev
# and make heyu work. 0755 didn't work, Ed Dipold says 0666
chmod 0666 /dev/ttyUSB0
chown gene:gene /dev/ttyUSB0

# Now, need some heyu stuff run
su gene -c "/usr/local/bin/heyu engine &"
su gene -c "/usr/local/bin/heyu monitor &"
exit 0

>
>
> The real question here is why the services that you use don't have a
> service file.

Is there a template that can be filled in and moved to an active 
location?

Spamassassin has the usual start,stop etc file in /e/init.d
and its a S04 in rc5.d.  So it should start ok.  It does ok later.

Thanks.
> --
> John Doe


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>


Reply to: