• systemctl vs service

    From Jeff Peng@21:1/5 to All on Thu Jun 13 02:00:01 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Jeff Peng on Thu Jun 13 02:40:01 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeff Peng@21:1/5 to Greg Wooledge on Thu Jun 13 09:10:01 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)