Page 1 of 1

Minor modifications to serviio.sh for easier upgrade

PostPosted: Mon Apr 25, 2011 1:24 pm
by tif
Hey there,

since I'm running serviio on a headless device (Seagate BlackArmor NAS 220), I had to make some modifications to serviio.sh:
  • Decreased memory pool: -Xmx384M -> -Xmx96M
  • Added -Dserviio.remoteHost=...

For easier upgrades, it would be nice if serviio.sh would not use hardcoded values, but instead try to read some environment variables and use defaults if nothing is in the environment. We could then easily launch serviio like so:
  Code:
SERVIIO_MEMORY="96" SERVIIO_OPTS="-Dserviio.remoteHost=..." bin/serviio.sh

No need to edit serviio.sh anymore.

best regards
tif