R
R
Rockfler2019-01-31 18:22:02
Debian
Rockfler, 2019-01-31 18:22:02

Why doesn't the service command display the execution result?

Good afternoon!
Why doesn't the service command display the execution result?
Previously, when I did on centos:
service nginx reload/restart/stop was
displayed OK or FAILED
I set myself debian 9, and when I execute the service nginx restart command, for example, the command does not report the result of the execution.
How to set it up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2019-02-01
@Radjah

systemctl status юнит
And look at the logs.
There are many types of yunnits, there are also many settings. Even error codes can be redefined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question