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

Amish anon.amish at gmail.com
Wed Jun 28 09:45:44 UTC 2017


On Wednesday 28 June 2017 02:08 PM, 清辰 wrote:
>
> Is there a way to execute stop actually, even the status is inactive.
>
> On Tue, 27.06.17 13:48, 清辰 (624001899 at qq.com 
> <mailto:624001899 at qq.com>) wrote:
>
> > for example: service nscd
> > 1.execute: systemctl stop nscd.service
> >   stop nscd process actually
> > 2.execute: /usr/bin/nscd
> >   start nscd by shell command

Why dont you (or your script) start it with:
systemctl start nscd

Then status and stop will also work as expected.

Amish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170628/7ad398d8/attachment.html>


More information about the systemd-devel mailing list