[systemd-devel] 回复: 回复: [systemd-de vel] systemctl can't execute stop actually,whenservice is started by other way

Lennart Poettering lennart at poettering.net
Wed Jun 28 11:29:07 UTC 2017


On Wed, 28.06.17 19:10, 清辰 (624001899 at qq.com) wrote:

> Why? I think that will be more insured in case the status is not
> correct.

Well, it's a service manager. As such it keeps track of services,
knows when they are started and when they aren't. Why would it stop
services that aren't started?

I am sorry, but systemd is simply not intended to be used that
way. Either you run your stuff as systemd service and then tell
systemd to stop it again too, or do not use systemd for service
management, and then tell it somehow else.

Sorry,

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list