You are not logged in.
Pages: 1
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
Your shell should be /usr/bin/ssh
$ which ssh
/usr/bin/ssh
Offline
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
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
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
Pages: 1