Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] How to restart sshd in one command? (Read 772 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] How to restart sshd in one command?

During installation i have to change a setting of sshd and restart it.
I found :
   # s6-rc -d change sshd
    # s6-rc -u change sshd

Is there a way to do it in one command?
I found a hint proposing:
 # s6-svc -r /run/service/$foo
but there is no /run/service/sshd file.

Re: How to restart sshd in one command?

Reply #1
try with /run/service/sshd-srv

Re: How to restart sshd in one command?

Reply #2
I dont see warnings . i think it worked . thanks.

Re: How to restart sshd in one command?

Reply #3
you can in general find  the names with ls /run/service/, so to be certain.

Marking it as solved