WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootlocal not starting daemons  (Read 3186 times)

Offline eno

  • Jr. Member
  • **
  • Posts: 54
bootlocal not starting daemons
« 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?

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: bootlocal not starting daemons
« Reply #1 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
« Last Edit: December 30, 2014, 04:28:41 PM by Greg Erskine »

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: bootlocal not starting daemons
« Reply #2 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.
« Last Edit: December 30, 2014, 04:40:47 PM by Lee »
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: bootlocal not starting daemons
« Reply #3 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.

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: bootlocal not starting daemons
« Reply #4 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).

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: bootlocal not starting daemons
« Reply #5 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: bootlocal not starting daemons
« Reply #6 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: bootlocal not starting daemons
« Reply #7 on: December 31, 2014, 03:12:03 PM »
Try 6.0rc1
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline eno

  • Jr. Member
  • **
  • Posts: 54
Re: bootlocal not starting daemons
« Reply #8 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.