FAQ  •  Register  •  Login

Proper Serviio Shutdown Routine using FreeNAS

<<

LLoyd

Streaming enthusiast

Posts: 24

Joined: Mon Jul 18, 2011 4:23 pm

Post Fri Jul 29, 2011 5:20 pm

Proper Serviio Shutdown Routine using FreeNAS

I have Serviio running on FreeNAS.

Should I add a FreeNAS "Shutdown" script with the following command: "sh /serviio-0.5.2/bin/serviio.sh -stop" ...to properly shutdown the Serviio server or will FreeNaS properly shutdown the Serviio server when the user selects "Reboot" or "Shutdown" from the FreeNAS "System" menu?

Another question: How would I know (or how could I check) if FreeNAS shutdown the Serviio server properly? What log should I be looking at and what entries would tell me if the Serviio server shutdown "correctly"?

Currently, I have no script running on FreeNAS to properly shutdown the Serviio server. I just shutdown FreeNAS (using the FreeNAS web-based configuration utility) and it just terminates the Serviio server? I'm hoping that's good enough. Should I use the following command instead: "sh /serviio-0.5.2/bin/serviio.sh -stop"?

Thanks, Lloyd
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Jul 29, 2011 5:33 pm

Re: Proper Serviio Shutdown Routine using FreeNAS

i would say it would be fine without a shutdown script but then adding one wont hurt either.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jul 30, 2011 2:50 am

Re: Proper Serviio Shutdown Routine using FreeNAS

There is a hook that gets executed when Serviio process quits. This will not work if you kill the process with kill -9 for example or just shutdown the PC. The hook code basically sends notification to the network that Serviio is no longer available, clear any transcoded files and shuts down the database properly.

Nothing terrible happens if you just kill the process, only startup will be slightly slower due to the database check/fix.
<<

LLoyd

Streaming enthusiast

Posts: 24

Joined: Mon Jul 18, 2011 4:23 pm

Post Sat Jul 30, 2011 7:03 pm

Re: Proper Serviio Shutdown Routine using FreeNAS

zip,

What do you suggest I use for a FreeNAS "Shutdown" script to graceful shutdown your program?

Please tell me what would be best. Create a new script for shutdown and not not use the serviio.sh script, or use the command (below) and use a different parameter other than "-stop".

sh /serviio-0.5.2/bin/serviio.sh <fill in the blank of what I should use to shutdown your program gracefully>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jul 31, 2011 2:12 am

Re: Proper Serviio Shutdown Routine using FreeNAS

serviio.sh -stop is the proper way.

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.