FAQ  •  Register  •  Login

Startup/shutdown question

<<

Scofflaw

Serviio newbie

Posts: 1

Joined: Fri Dec 26, 2025 8:15 am

Post Tue Feb 10, 2026 9:07 am

Startup/shutdown question

Hi,
I installed serviio successfully on my RaspberryPi model 2B.
Data location is on a nfs mounted share on a NAS. Everything works well, even media access over the internet as well as administration using ServiiDroid on my Android based smartphone.

Unfortunately the NAS does not go into sleep mode any more, since > 2 weeks meanwhile. Serviio is set up to refresh the data every 24 hours. I would expect this refresh to take a few minutes, as long as nothing has changed meanwhile. But as I said: NAS is accessed permanently, so that it can't go to sleep mode any more.

To fix this issue I'm thinking about shutdown serviio remotely as long as I don't need it and start it up in same way as soon as I'd like to access my media. It is not so handy to open a Linux console on an Android smartphone and remotely log in to the RaspberryPi from anywhere, so I'm looking for an alternative solution. Ideally I would simply have an icon on the smartphone which would (maybe password protected) startup or shutdown Serviio on the RaspberryPi. Does anyone know how to realize this, or is an alternative solution for the described issue possible?
<<

atc98092

User avatar

DLNA master

Posts: 5482

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Feb 10, 2026 11:53 pm

Re: Startup/shutdown question

I could see having a script on a local network computer to stop/start Serviio on a different machine, but accessing from outside the firewall seems to be too much of a security hole for someone to attempt to exploit. It is possible to open a port on the firewall to reach the Serviio console and stop the server (but the base Serviio process remains running, which might not allow the NAS to sleep) but because the console has no security at all (not even a basic password) it's really not a good idea.

Of course, my personal opinion is there's no issue with a NAS running full time. I have all of my PCs set to never sleep, and they use much more power than a NAS. But that's a personal decision for someone to make.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

cmakula

Streaming enthusiast

Posts: 37

Joined: Tue Oct 29, 2019 9:04 pm

Location: Chicago, Illinois, USA

Post Thu Feb 19, 2026 7:36 pm

Re: Startup/shutdown question

I know this is kind of late, but if you haven't found a solution maybe I can help.

If you use the server only at certain times (for example, not in the middle of the night or not on work days), you can turn serviio on and off completely under Linux (including Raspbian) using a cron job.

Google "cron jobs" or "crontab" for a quick tutorial...

"systemctl start serviio" is the command to start Serviio if it is set up as a service. "/opt/serviio/bin/serviio.sh" is the command if started from a terminal or in the rc.local.
"systemctl stop serviio" is the command to stop Serviio if it is set up as a service. "/opt/serviio/bin/serviio.sh -stop" is the command to stop Serviio if started from a terminal or in the rc.local

If you set up the systemd script in the Ubuntu wiki Serviio will be a service...
:ugeek:
Serviio Server - Dell PowerEdge R420, Dual Xeon E5-2420, 4x120 GB SSD RAID 0, 64 GB RAM (Serviio running from RAMdisk), 4 NICs (aggregated to LAN), 10Gbe to NAS, Ubuntu Server 24.04.3
NFS File Server - Synology DS1517+, 20TB disk space (5x4TB), 4 NICs (aggregated to LAN), 10Gbe to Serviio Server

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 42 guests

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