Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: eno on December 30, 2014, 04:12:18 PM

Title: bootlocal not starting daemons
Post by: eno on December 30, 2014, 04:12:18 PM
I installed openssh and have added
Code: [Select]
/usr/local/etc/ssh to
Code: [Select]
.filetool.lst and have
Code: [Select]
/usr/local/etc/init.d/openssh start in
Code: [Select]
bootlocal.sh but it never starts the openssh daemon when I boot up. Any ideas how to troubleshoot?
Title: Re: bootlocal not starting daemons
Post by: Greg Erskine on December 30, 2014, 04:26:25 PM
hi eno,

.filetool.lst entries should not have the leading "/"

ie. /usr/local/etc/ssh -> usr/local/etc/ssh

and I assume you did a filetool.sh -b

regards
Greg
Title: Re: bootlocal not starting daemons
Post by: Lee on December 30, 2014, 04:38:07 PM
Excerpt from /usr/local/etc/init.d/openssh :
Code: [Select]
case $1 in
   status) pidof sshd;;
   start) start;;
   stop) stop;;
   restart) restart;;
   keygen) keygen;;
   *) echo "Usage $0 {start|stop|restart|keygen}"; exit 1
esac

...looks like you need to invoke it with the "start" argument, otherwise it will just (try to) display some help text and then quit.

Code: [Select]
/usr/local/etc/init.d/openssh start
Also if you don't back up your keys, it will generate new ones on every reboot, which can be annoying.

Edit 2014-12-29 15:40 :  That is, assuming these things work the same on Pi as on x86.
Title: Re: bootlocal not starting daemons
Post by: eno on December 30, 2014, 11:24:50 PM
Actually I did have the start argument in bootlocal.

But I forgot that entries in .filetool.lst should not have leading entries so Im thinking that's probably the problem. I will have to go back and test that.
Title: Re: bootlocal not starting daemons
Post by: eno on December 31, 2014, 12:51:58 PM
OK, went back and removing leading slashes. Ran filetool.sh -b and rebooted but I still dont see sshd running after its finished booting. I do see the process running bootlocal.sh, it just doesn't appear to run the start command I put in there. The extension is mounted correctly (i.e. I see /usr/local/etc/init.d/openssh is a sym link to /tmp/tcloop/openssh/usr/local/etc/init.d/openssh which is mounted).
Title: Re: bootlocal not starting daemons
Post by: bmarkus on December 31, 2014, 01:15:19 PM
Yoo did not tell which version you are playing with.

Also, there is an image available with openssh preinstalled. Maybe worth to try.
Title: Re: bootlocal not starting daemons
Post by: eno on December 31, 2014, 03:06:13 PM
Im running latest piCore beta (I have another RPi with an older beta where this openssh setup works). I tried comparing devices but did not see any differences. I will try reinstalling just to get to a known baseline before testing again.
Title: Re: bootlocal not starting daemons
Post by: bmarkus on December 31, 2014, 03:12:03 PM
Try 6.0rc1
Title: Re: bootlocal not starting daemons
Post by: eno on December 31, 2014, 11:51:51 PM
I reinstalled before reading your reply so Im running beta3 but everything is working now anyway (perhaps I missed a step the first time round). Thanks for everyone's help.