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.

Reply via email to