Discussion:
systemctl vs service
(too old to reply)
Jeff Peng
2024-06-13 00:00:01 UTC
Permalink
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.
Greg Wooledge
2024-06-13 00:40:01 UTC
Permalink
Post by Jeff Peng
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.
Jeff Peng
2024-06-13 07:10:01 UTC
Permalink
Post by Greg Wooledge
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.
mindaugas
2024-06-13 14:40:01 UTC
Permalink
Post by 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
Loading...