Re: service vs systemctl

2023-03-07 Thread Tixy
I accidentally deleted a sentence in my last reply, here's the corrected version... On Tue, 2023-03-07 at 15:38 +0800, Ken Young wrote: > Hello > > For debian 11, service is just a wrapper to systemctl, is it right? It's a 217 line shell script and looking at it it checks for which init system i

Re: service vs systemctl

2023-03-07 Thread Tixy
On Tue, 2023-03-07 at 15:38 +0800, Ken Young wrote: > Hello > > For debian 11, service is just a wrapper to systemctl, is it right? It's a 217 line shell script and looking at it it checks for which init system is in use. So if you have systemd (Debian's default now) then yes, it will call system

service vs systemctl

2023-03-06 Thread Ken Young
Hello For debian 11, service is just a wrapper to systemctl, is it right? So for server management, both commands below have the same results. sudo service nginx start sudo systemclt start nginx Which way is more prefered though? Thanks. -- Sincerely, Ken Young