{"action":"created","issue":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/348","repository_url":"https://api.github.com/repos/bitwalker/distillery","labels_url":"https://api.github.com/repos/bitwalker/distillery/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/bitwalker/distillery/issues/348/comments","events_url":"https://api.github.com/repos/bitwalker/distillery/issues/348/events","html_url":"https://github.com/bitwalker/distillery/issues/348","id":266134437,"node_id":"MDU6SXNzdWUyNjYxMzQ0Mzc=","number":348,"title":"Starting in foreground mode on windows fails to get PID and returns errorlevel 1","user":{"login":"mtsznowak","id":4615113,"node_id":"MDQ6VXNlcjQ2MTUxMTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4615113?v=4","gravatar_id":"","url":"https://api.github.com/users/mtsznowak","html_url":"https://github.com/mtsznowak","followers_url":"https://api.github.com/users/mtsznowak/followers","following_url":"https://api.github.com/users/mtsznowak/following{/other_user}","gists_url":"https://api.github.com/users/mtsznowak/gists{/gist_id}","starred_url":"https://api.github.com/users/mtsznowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtsznowak/subscriptions","organizations_url":"https://api.github.com/users/mtsznowak/orgs","repos_url":"https://api.github.com/users/mtsznowak/repos","events_url":"https://api.github.com/users/mtsznowak/events{/privacy}","received_events_url":"https://api.github.com/users/mtsznowak/received_events","type":"User","site_admin":false},"labels":[{"id":600016924,"node_id":"MDU6TGFiZWw2MDAwMTY5MjQ=","url":"https://api.github.com/repos/bitwalker/distillery/labels/deployment:scripts","name":"deployment:scripts","color":"d9c9a9","default":false},{"id":408462274,"node_id":"MDU6TGFiZWw0MDg0NjIyNzQ=","url":"https://api.github.com/repos/bitwalker/distillery/labels/help-wanted","name":"help-wanted","color":"fbca04","default":false},{"id":408461902,"node_id":"MDU6TGFiZWw0MDg0NjE5MDI=","url":"https://api.github.com/repos/bitwalker/distillery/labels/os:windows","name":"os:windows","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bitwalker/distillery/milestones/4","html_url":"https://github.com/bitwalker/distillery/milestone/4","labels_url":"https://api.github.com/repos/bitwalker/distillery/milestones/4/labels","id":2766559,"node_id":"MDk6TWlsZXN0b25lMjc2NjU1OQ==","number":4,"title":"2.0","description":"Next major release, incorporating configuration changes, deprecations/removals, and doc rewrite.","creator":{"login":"bitwalker","id":955793,"node_id":"MDQ6VXNlcjk1NTc5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/955793?v=4","gravatar_id":"","url":"https://api.github.com/users/bitwalker","html_url":"https://github.com/bitwalker","followers_url":"https://api.github.com/users/bitwalker/followers","following_url":"https://api.github.com/users/bitwalker/following{/other_user}","gists_url":"https://api.github.com/users/bitwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwalker/subscriptions","organizations_url":"https://api.github.com/users/bitwalker/orgs","repos_url":"https://api.github.com/users/bitwalker/repos","events_url":"https://api.github.com/users/bitwalker/events{/privacy}","received_events_url":"https://api.github.com/users/bitwalker/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":13,"state":"open","created_at":"2017-09-14T19:44:43Z","updated_at":"2018-08-02T16:56:55Z","due_on":"2018-08-01T07:00:00Z","closed_at":null},"comments":14,"created_at":"2017-10-17T13:55:31Z","updated_at":"2018-08-14T23:03:33Z","closed_at":null,"author_association":"NONE","body":"### Steps to reproduce\r\n\r\n* Install Windows 7 SP1\r\n* Create release with MIX_ENV=prod\r\n* Try to call _build\\ENV\\rel\\YOURAPPNAME\\VERSION\\YOURAPPNAME.bat foreground\r\n\r\n### Verbose Logs\r\n\r\nPaste the output of the release command you ran with the `--verbose` flag.\r\n\r\nThis is in Polish, but when you run it, it first fails with\r\n\r\n\"System nie może odnaleźć pliku `%get_pid_cmd%`.'\r\n\r\nwhich means\r\n\r\n\"System is unable to locate file `%get_pid_cmd%`\"\r\n\r\nand than the subsequent call to tasklist fails with\r\n\r\n\"BŁĄD: Nieznany filtr wyszukiwania.\"\r\n\r\nwhich means\r\n\r\n\"ERROR: Invalid search filter\"\r\n\r\nwhich makes sense as there's no PID after `eq`.\r\n\r\nThe app is being started despite the error.\r\n\r\n<summary>\r\n<details>\r\n\r\n```\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>vendor-app.bat foreground\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set rel_name=vendor-app\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set rel_vsn=0.8.0\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erts_vsn=8.3\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erl_opts=-smp enabled\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set script_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for %A in (\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\\\..\\..\") do @(set release_root_dir=%~fA )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set rel_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"\" == \"\" (set mutable_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var )  else (set mutable_dir=RELEASE_MUTABLE_DIR )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"\" == \"\" (set config_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app )  else (set config_dir= )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set log_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var\\log\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if not exist C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var mkdir C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if not exist C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app mkdir C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if not exist C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var\\log mkdir C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\var\\log\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :find_erts_dir\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"8.3\" == \"\" (call :use_system_erts )  else (call :use_bundled_erts )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erts_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erl=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set rootdir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :find_sys_config\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set possible_sys=\\sys.config\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if exist \\sys.config (set sys_config_src=\\sys.config )  else (set sys_config_src=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\sys.config )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set sys_config_target=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\sys.config\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>powershell -command \"$content = get-content C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\sys.config; [regex]::matches($content, '\\${[\\w\\d_-]+}') | foreach { $content = $content.Replace($_.value, [System.Environment]::GetEnvironmentVariable($_.value)) }; out-file -filepath C:\\app\\src\\backend\\_build\\prod\\rel\\radiokit-app\\sys.config -inputobject $content -encoding ascii\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set sys_config=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\sys.config\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :find_vm_args\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set possible_vmargs=\\vm.args\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if exist \\vm.args (set vmargs_src=\\vm.args )  else (set vmargs_src=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\vm.args )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set vmargs_target=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\vm.args\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>powershell -command \"$content = get-content C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\vm.args; [regex]::matc\r\nhes($content, '\\${[\\w\\d_-]+}') | foreach { $content = $content.Replace($_.value, [System.Environment]::GetEnvironmentVariable($_.value)) }; out-file -filepath C:\\app\\src\\backend\\_build\\prod\\rel\\radiokit-app\\vm.args -inputobject $content -encoding ascii\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set vm_args=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\vm.args\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :set_boot_script_var\r\nSystem nie może znaleźć etykiety pliku wsadowego - set_boot_script_var\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set service_name=vendor-app_0.8.0\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set bindir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set progname=erl.exe\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set clean_boot_script=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\bin\\start_clean\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erlsrv=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erlsrv.exe\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set epmd=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\epmd.exe\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set escript=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\escript.exe\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set werl=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\werl.exe\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set nodetool=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\bin\\nodetool\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set consolidated_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\lib\\vendor-app-0.8.0\\consolidated\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set hook_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set command_dir=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\commands\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /F \"usebackq tokens=1-2\" %I in (`findstr /b \"\\-name \\-sname\" \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\vm.args\"`) do @\r\n(\r\nset node_type=%I\r\n set node_name=%J\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /F \"usebackq tokens=1-2\" %I in (`findstr /b \\-setcookie \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\vm.args\"`) do @(set cookie=%J )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :write_ini\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set erl_ini=C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl.ini\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set converted_bindir=C:\\\\app\\\\src\\\\backend\\\\_build\\\\prod\\\\rel\\\\vendor-app\\\\erts-8.3\\\\bin\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set converted_rootdir=C:\\\\app\\\\src\\\\backend\\\\_build\\\\prod\\\\rel\\\\vendor-app\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>echo [erlang]  1>\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl.ini\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>echo Bindir=C:\\\\app\\\\src\\\\backend\\\\_build\\\\prod\\\\rel\\\\vendor-app\\\\erts-8.3\\\\bin  1>>\"C:\\app\\src\\backend\\_build\\prod\\rel\\radiokit-app\\erts-8.3\\bin\\erl.ini\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>echo Progname=erl.exe  1>>\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl.ini\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>echo Rootdir=C:\\\\app\\\\src\\\\backend\\\\_build\\\\prod\\\\rel\\\\vendor-app  1>>\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl.ini\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if not exist \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\start.boot\" (copy \"C:\\app\\src\\backend\\_build\\prod\\\r\nrel\\vendor-app\\releases\\0.8.0\\vendor-app.boot\" \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\start.boot\"  1>nul )\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set taskname=\"foreground\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>shift /1\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set args=\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>setlocal EnableDelayedExpansion\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set param=\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"!param!\" == \"\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>endlocal   &\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"foreground\" == \"install\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"foreground\" == \"uninstall\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"foreground\" == \"start\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if \"foreground\" == \"foreground\"\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :pre_configure_hooks\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :execute_hooks pre_configure\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /R \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\\pre_configure.d\" %f in (*.bat) do (\r\n\r\n %f\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :post_configure_hooks\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :execute_hooks post_configure\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /R \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\\post_configure.d\" %f in (*.bat) do (\r\n\r\n %f\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :pre_start_hooks\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :execute_hooks pre_start\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /R \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\\pre_start.d\" %f in (*.bat) do (\r\n\r\n %f\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set EMU=beam\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set PROGNAME=vendor-app\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>start \"\" /B \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\erl\" -noshell -noinput +Bd        -boot \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\vendor-app\"        -boot_var ERTS_LIB_DIR \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\..\\lib\"        -env ERL_LIBS \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\lib\"        -pa \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\lib\\vendor-app-0.8.0\\consolidated\"        -args_file \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\vm.args\"        -config \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\sys.config\"        -smp enabled        -extra\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :set_pid\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :ping 1>NUL\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if 0 GEQ 1 exit 0\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>setlocal EnableDelayedExpansion\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>set get_pid_cmd=\"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\erts-8.3\\bin\\escript.exe\" \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\bin\\nodetool\" eval -name vendor-app@127.0.0.1 -setcookie \"!cookie!\" \"erlang:list_to_integer(os:getpid()).'\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /F \"delims=\" %i in (`%get_pid_cmd%`) do set pid=%i\r\nSystem nie może odnaleźć pliku `%get_pid_cmd%`.\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>endlocal\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :post_start_hooks\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :execute_hooks post_start\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /R \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\\post_start.d\" %f in (*.bat) do (\r\n\r\n %f\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>tasklist /FI \"PID eq \"   | find /I \"erl.exe\"\r\nBŁĄD: Nieznany filtr wyszukiwania.\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>if 1 GEQ 1 (call :post_stop_hooks )  else (\r\n\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>call :execute_hooks post_stop\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>for /R \"C:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0\\hooks\\post_stop.d\" %f in (*.bat) do (\r\n\r\n %f\r\n\r\n)\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>goto :eof\r\n\r\nC:\\app\\src\\backend\\_build\\prod\\rel\\vendor-app\\releases\\0.8.0>echo %ERRORLEVEL%\r\n1\r\n```\r\n\r\n<details>\r\n<summary>\r\n\r\n### Description of issue\r\n\r\n- What are the expected results?\r\n\r\nThe app starts and script returns no error and errorlevel 0.\r\n\r\n- What OS, Erlang/Elixir versions are you seeing this issue on?\r\n\r\nWindows 7 SP1 32-bit Elixir 1.4.4, Erlang 19.\r\n\r\n- If possible, also provide your `rel/config.exs`, as it is often\r\n  my first troubleshooting question, and you'll save us both time :)\r\n\r\n```elixir\r\n# Import all plugins from `rel/plugins`\r\n# They can then be used by adding `plugin MyPlugin` to\r\n# either an environment, or release definition, where\r\n# `MyPlugin` is the name of the plugin module.\r\nPath.join([\"rel\", \"plugins\", \"*.exs\"])\r\n|> Path.wildcard()\r\n|> Enum.map(&Code.eval_file(&1))\r\n\r\nuse Mix.Releases.Config,\r\n    # This sets the default release built by `mix release`\r\n    default_release: :default,\r\n    # This sets the default environment used by `mix release`\r\n    default_environment: Mix.env()\r\n\r\n# For a full list of config options for both releases\r\n# and environments, visit https://hexdocs.pm/distillery/configuration.html\r\n\r\n\r\n# You may define one or more environments in this file,\r\n# an environment's settings will override those of a release\r\n# when building in that environment, this combination of release\r\n# and environment configuration is called a profile\r\n\r\nenvironment :dev do\r\n  set dev_mode: true\r\n  set include_erts: false\r\n  set cookie: :\"XXXX\"\r\nend\r\n\r\nenvironment :prod do\r\n  case :os.type do\r\n    {:unix, :linux} ->\r\n      # Workaround for distillery_packager's problem with detecting arhitecture.\r\n      # It uses uname, which returns machine hardware name, but not architecture \r\n      {arch, _ret} = System.cmd(\"dpkg\", [\"--print-architecture\"]) \r\n      arch = arch |> String.replace(\"\\n\", \"\")\r\n\r\n      plugin DistilleryPackager.Plugin, %{architecture: arch}\r\n    _ ->\r\n      nil\r\n  end\r\n  set include_erts: true\r\n  set include_src: false\r\n  set cookie: :\"XXXX\"\r\nend\r\n\r\n# You may define one or more releases in this file.\r\n# If you have not set a default release, or selected one\r\n# when running `mix release`, the first release in the file\r\n# will be used by default\r\n\r\nrelease :'vendor-app' do\r\n  set version: current_version(:vendor_app)\r\n  set applications: [\r\n    :vendor_app,\r\n    :runtime_tools\r\n  ]\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bitwalker/distillery/issues/comments/413043392","html_url":"https://github.com/bitwalker/distillery/issues/348#issuecomment-413043392","issue_url":"https://api.github.com/repos/bitwalker/distillery/issues/348","id":413043392,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA0MzM5Mg==","user":{"login":"bitwalker","id":955793,"node_id":"MDQ6VXNlcjk1NTc5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/955793?v=4","gravatar_id":"","url":"https://api.github.com/users/bitwalker","html_url":"https://github.com/bitwalker","followers_url":"https://api.github.com/users/bitwalker/followers","following_url":"https://api.github.com/users/bitwalker/following{/other_user}","gists_url":"https://api.github.com/users/bitwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwalker/subscriptions","organizations_url":"https://api.github.com/users/bitwalker/orgs","repos_url":"https://api.github.com/users/bitwalker/repos","events_url":"https://api.github.com/users/bitwalker/events{/privacy}","received_events_url":"https://api.github.com/users/bitwalker/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T23:03:33Z","updated_at":"2018-08-14T23:03:33Z","author_association":"OWNER","body":"Thanks for the feedback @OvermindDL1! \r\n\r\nI will explore the PS route a bit. Since we already have a shim script to exec the \"real\" boot script, it can be modified to run it as a PS script instead, the question is whether there are issues with maintaining parity with the *NIX scripts in PS or not.\r\n\r\nI'm still interested in feedback from others in the community though, so feel free to chime in, even if just to state your agreement!"}}
{"actor":{"display_login":"bitwalker"}}