Post Mon Apr 14, 2014 9:14 am

start serviio with exec under unix

Can you add an exec just before the java command line in bin/serviio.sh like this?

  Code:
# Execute the JVM in the foreground
exec "$JAVA" -Xmx512M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"


by doing so the calling shell will exit and the PID will remain the same, and it works better with systemd