Check the error log from the PS script, or stdout log from Solr. Probably the environment used by PS script is different from running it locally. We need some more info on your exact setup in order to guess.
Jan > 4. jan. 2022 kl. 12:42 skrev Reej Nayagam <reej...@gmail.com>: > > Hi All, > > We have created a powershell script to run solr service in windows. > When running the service from the command line, the solr.log is created at > the configured path - SOLR_LOGS_DIR in solr.in.cmd file > But when starting as a service, even if there is a solr.log file, it gets > renamed to solr.log.1 but new file is not created. > The other logs solr-gc.log0.current and solr-3983-console.log are created. > > Any advice on what might be the problem? > > *Thanks,* > *Reej*