Page 1 of 1

Best way to restart server...

Posted: 15 May 2014 23:09
by skiv71
Hi,

I've had a few instances where the z-way server appears to have crashed.

Not quite sure why its happening :-/

I'm looking at the quickest way to get the server back up.

Reboot the PI or /etc/init.d/Z-Way restart.

Any thoughts?

Thanks,

Neil

Re: Best way to restart server...

Posted: 15 May 2014 23:33
by pofs
Does it happen regularly? Is there any crash reason in the log?

Surely service restart is faster than restarting whole Pi.

Note that /etc/init.d/Z-Way is renamed to /etc/init.d/z-way-server starting version 1.7.0 (it is already renamed in release candidates).

Re: Best way to restart server...

Posted: 16 May 2014 00:21
by skiv71
It's happened twice of late... are the logs persistant? Where are they located? I'll have a look

Re: Best way to restart server...

Posted: 16 May 2014 00:27
by pofs
They're in /var/log. Either Z-Way.log or z-way-server.log, depending on software version.

Version 1.7.0-rc3 delivers a lot of stability improvements, so your issue may be already solved.

Re: Best way to restart server...

Posted: 16 May 2014 00:33
by skiv71
Think i'm running the 1.4.0 :-/

thanks for the log locations, looking now

Re: Best way to restart server...

Posted: 16 May 2014 00:37
by skiv71
Jeez, the Z-Way.log is HUGE :-o

I'll have to delete it and see how it goes...

Is logging configurable?

Re: Best way to restart server...

Posted: 16 May 2014 00:42
by pofs
Version 1.4.0 and later handles SIGHUP, so you may install logrotate to archive old logs.

Also you may set log level in config.xml (0 to 6 for log-level and 0 to 4 for http-log-level)

Re: Best way to restart server...

Posted: 16 May 2014 00:46
by skiv71
I think for the minute, i'm looking to reduce it...

i might rename it on boot... to start new one

Re: Best way to restart server...

Posted: 16 May 2014 00:57
by PoltoS
Latest install script configures logrotate to 10M * 4 files. So the file will not be so huge anymore. Just update and it will be configured automatically.

Re: Best way to restart server...

Posted: 16 May 2014 01:23
by skiv71
Think i'm running 1.4.1, whats the current version?

Will i lose any functionality?

Can you please remind me how to upgrade?

Thanks

Neil