Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270060 > unrolled thread

systemctl vs service

Started byJeff Peng <jeff@tls-mail.com>
First post2024-06-13 02:00 +0200
Last post2024-06-13 16:40 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  systemctl vs service Jeff Peng <jeff@tls-mail.com> - 2024-06-13 02:00 +0200
    Re: systemctl vs service Greg Wooledge <greg@wooledge.org> - 2024-06-13 02:40 +0200
      Re: systemctl vs service Jeff Peng <jeff@tls-mail.com> - 2024-06-13 09:10 +0200
    Re: systemctl vs service mindaugas <mindaugasceliesius@gmail.com> - 2024-06-13 16:40 +0200

#270060 — systemctl vs service

FromJeff Peng <jeff@tls-mail.com>
Date2024-06-13 02:00 +0200
Subjectsystemctl vs service
Message-ID<IOG2J-2uby-1@gated-at.bofh.it>
Hello

I was a bit confused, systemctl and service both are used for service 
control (start|stop|reload etc). what's the suggested way for using 
them?

thanks & regards.

[toc] | [next] | [standalone]


#270062

FromGreg Wooledge <greg@wooledge.org>
Date2024-06-13 02:40 +0200
Message-ID<IOGFr-2uDk-3@gated-at.bofh.it>
In reply to#270060
On Thu, Jun 13, 2024 at 07:50:45AM +0800, Jeff Peng wrote:
> I was a bit confused, systemctl and service both are used for service
> control (start|stop|reload etc). what's the suggested way for using them?

The "service" command originated with Red Hat's implementation of sysv-rc
and is maintained under Debian for compatibility or convenience.  Use it
if you like it.

The "systemctl" command originated with systemd, and offers more features
(subcommands and options).

If all you want to do is stop and restart a service, they're both fine.
If you want more features, it's worth learning systemctl.

[toc] | [prev] | [next] | [standalone]


#270072

FromJeff Peng <jeff@tls-mail.com>
Date2024-06-13 09:10 +0200
Message-ID<IOMKR-2zsF-5@gated-at.bofh.it>
In reply to#270062
On 2024-06-13 08:38, Greg Wooledge wrote:

> 
> If all you want to do is stop and restart a service, they're both fine.
> If you want more features, it's worth learning systemctl.

that's all right. I will check the doc of systemctl for more details. 
thanks.

[toc] | [prev] | [next] | [standalone]


#270081

Frommindaugas <mindaugasceliesius@gmail.com>
Date2024-06-13 16:40 +0200
Message-ID<IOTMl-2FX5-11@gated-at.bofh.it>
In reply to#270060
13.06.2024 02:50, Jeff Peng пишет:
> Hello
>
> I was a bit confused, systemctl and service both are used for service 
> control (start|stop|reload etc). what's the suggested way for using them?
>
> thanks & regards.
>

Hello.


Just check this:

https://serverfault.com/questions/867322/what-is-the-difference-between-service-and-systemctl

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web