The officially official Devuan Forum!

You are not logged in.

#1 2023-09-26 16:09:26

the_edge123
Member
Registered: 2020-05-19
Posts: 11  

[SOLVED] service ssh not running

Using service ssh <whatever> does not do anything on daedalus.
The script /etc/init.d/ssh stops at line 25  . /lib/lsb/init-functions which stops at line 418  for hook in ... 
with hook=/lib/lsb/init-functions.d/40-runit.
I don't know what this file is doing.
My workaround was doing touch /etc/runit/lsb.runit.sysv .
HTH
-
Fabien

Offline

#2 2023-10-04 14:32:17

LinuxMan
Member
From: Florida
Registered: 2023-06-28
Posts: 14  
Website

Re: [SOLVED] service ssh not running

Your shell should be /usr/bin/ssh check to see if your shell is running from /usr/local/bin/ssh which is a script that does nothing.

Offline

#3 2023-10-05 08:31:20

the_edge123
Member
Registered: 2020-05-19
Posts: 11  

Re: [SOLVED] service ssh not running

Your shell should be /usr/bin/ssh

$ which ssh
/usr/bin/ssh

Offline

#4 2023-10-05 18:42:03

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,427  

Re: [SOLVED] service ssh not running

I checked this on a daedalus live-iso with runit that I made some time ago. (more than a year, I think,) I get slightly different weirdness.

service tells me that ssh is running. If I try to stop it with 'service ssh stop' it tells me that it's stopped, but then status tells me it's still running.
If I then try 'sv stop ssh' it does stop it (according to service) and then I can stop or start it with the service command. i.e. it only fails the first time.

Offline

#5 2023-10-05 21:49:20

Lorenzo
Member
Registered: 2020-03-03
Posts: 36  

Re: [SOLVED] service ssh not running

Hi Fabien,

Using service ssh <whatever> does not do anything on daedalus.

There is no support for runit in the service wrapper, but what you are reporting
only happens if
* you have runit installed
* a runit definition for the service exists for example /etc/sv/ssh
* the service is enabled with runit ( /etc/service/ssh link exist )
otherwise the service wrapper should work

My workaround was doing touch /etc/runit/lsb.runit.sysv .

I don't recommend this unless you fully understand what it does: it will run the sysv script even if you have an active instance of the same service already managed with runit; possible side effect are:
- crash of the runit instance
- you get two instance running (only one is supervised by runit)
- the reported status of the service may be inconsistent with the one you get with 'sv status'
it also can break the upgrade of few packages - I think it was mariadb ..

The real fix would be to add runit support to the service wrapper, hopefully will happen in this cycle; for the time being I recommend to use the sv command to control services that are managed by runit.

Lorenzo

Offline

#6 2023-10-06 08:30:58

the_edge123
Member
Registered: 2020-05-19
Posts: 11  

Re: [SOLVED] service ssh not running

Hi Lorenzo,

you have runit installed

I installed it when I migrated from debian to beowulf to get /sbin/poweroff.
At that time, sysvinit-core was to be installed after.
Now, I removed the package and the link and it works.

Offline

Board footer