File path issue
See original GitHub issueOS: Windows 10 x64
winsw.exe.conf:
<configuration> <startup> <supportedRuntime version="v2.0.50727" /> <supportedRuntime version="v4.0" /> </startup> <runtime> <generatePublisherEvidence enabled="false" /> </runtime> </configuration>
winsw.xml:
<configuration> <id>nginx</id> <name>nginx</name> <description>High Performance Web Service</description> <executable>C:\Wnmp\nginx\nginx.exe</executable> <logpath>C:\Wnmp\nginx\logs\</logpath> <log mode="roll-by-size"> <sizeThreshold>10240</sizeThreshold> <keepFiles>8</keepFiles> </log> <depend></depend> <startargument>-p C:\Wnmp\nginx</startargument> <stopargument>-p C:\Wnmp\nginx -s stop</stopargument> </configuration>
nginx version: 1.10.1
error log:
nginx: [alert] could not open error log file: CreateFile() " C:\Wnmp\nginx/logs/error.log" failed (123: The filename, directory name, or volume label syntax is incorrect) 2016/07/12 10:35:03 [emerg] 716#5388: CreateFile() " C:\Wnmp\nginx/conf/nginx.conf" failed (123: The filename, directory name, or volume label syntax is incorrect)
when I removed path argument (-p C:\Wnmp\nginx) from startargument and stopargument, the service can startup normally.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I was having the same problem when specifying
-p
and came across this issue. For future reference, you just need to split up your start/stop arguments. WinSW puts the entire argument into quotes which confuses nginx.<startargument>-p C:\Wnmp\nginx</startargument>
should be changed to<startargument>-p</startargument>
<startargument>C:\Wnmp\nginx</startargument>
Duplicate of #89