Forum OpenACS Development: Re: NaviServer on Windows: How to restart on Windows? How to exit with error code?

Hi Gustaf,

Great! And it works works on Windows.

However, I'd have to patch /acs-admin/server-restart then.

Would it be an option to include the -restart parameter for the next OpenACS version?

I checked the rest of the code. This was the only use of ns_shutdown, except for the bootstrap installer. Are you aware of any other use I might have missed?

Cheers,
Frank

You are asking for a change, which is
a) incompatible with AOLserver, and
b) can break existing installations , when suddenly nsd returns on restart a non-zero return code, when someone click on "restart server". The exact consequences for the various service managers (like systemd, upstart, daemontools, launchd, ...) etc. are hard to determine and depend on details.

Leaving the default behavior as it is and add a configure option for NaviServer and the non-zero returncode is probably ok.

Hi Gustaf,

Good points.
So yeah, a configuration option would be great in one of the next OpenACS options.

Meanwhile we've patched the code in OpenACS 5.9 to do the -restart on Windows. There is no time pressure, because it will probably be years before we do the next update.

Cheers,
Frank