Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: chomwitt on 22 January 2021, 12:53:08

Title: [SOLVED] How to restart sshd in one command?
Post by: chomwitt on 22 January 2021, 12:53:08
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 (https://github.com/skarnet/s6-rc/issues/3):
 # s6-svc -r /run/service/$foo
but there is no /run/service/sshd file.
Title: Re: How to restart sshd in one command?
Post by: linuxer on 22 January 2021, 13:07:37
try with /run/service/sshd-srv
Title: Re: How to restart sshd in one command?
Post by: chomwitt on 22 January 2021, 13:36:56
I dont see warnings . i think it worked . thanks.
Title: Re: How to restart sshd in one command?
Post by: linuxer on 22 January 2021, 15:10:47
you can in general find  the names with ls /run/service/, so to be certain.

Marking it as solved