Skip to content

Starting the service starts two processes #546

@JunwooZ

Description

@JunwooZ

Nginx was successfully registered as the Window service according to the documentation.But when I open task manager, two nginx.exes exist in the background process.
I don't know if this is normal, or what's missing in the XML file.

nginx.xml

<service>

 <id>nginx</id>

 <name>nginx</name>

 <description>nginx</description>

 <logpath>D:\deploy\nginx-1.18.0\servicelogs</logpath>

 <log mode='roll-by-time'>
    <pattern>yyyyMMdd</pattern>
 </log>

 <depend></depend>

  <executable>D:\deploy\nginx-1.18.0\nginx.exe</executable>

  <stopexecutable>D:\deploy\nginx-1.18.0\nginx.exe -s stop</stopexecutable>

</service>

Does calling nginx_service.exe stop directly kill the process starting the service? This is that when I register the self-generated exe file as a service using WinSW, there is no configuration like StopEXECUTABLE in the XML file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions