User Tools

Site Tools


howto:linux:install:gentoo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howto:linux:install:gentoo [2012/08/11 23:59]
danomac
howto:linux:install:gentoo [2013/01/10 17:36]
zip [Extract Serviio]
Line 55: Line 55:
 </code> </code>
  
-Now you can proceed to the [[syntax:Download Serviio|Download Serviio]] section.+Now you can proceed to the [[howto:linux:install:gentoo#Download Serviio|Download Serviio]] section.
  
 === Sun JRE === === Sun JRE ===
Line 118: Line 118:
 </code> </code>
  
-Now you can proceed to the [[syntax:Download Serviio|Download Serviio]] section.+Now you can proceed to the [[howto:linux:install:gentoo#Download Serviio|Download Serviio]] section.
  
 ===== Download Serviio ===== ===== Download Serviio =====
Line 129: Line 129:
  
 <code> <code>
-# tar zxf serviio-1.0.1-linux.tar.gz -C /opt +# tar zxf serviio-1.1-linux.tar.gz -C /opt 
-# mv /opt/serviio-1.0.1 /opt/serviio+# mv /opt/serviio-1.1 /opt/serviio
 </code> </code>
  
Line 184: Line 184:
  
 start() { start() {
-ebegin "Starting Serviio Media Server" +        ebegin "Starting Serviio Media Server" 
-  start-stop-daemon --start --exec $SERVIIO_CMD --make-pidfile \ +        start-stop-daemon --start --exec ${SERVIIO_CMD--make-pidfile \ 
-      --user $SERVIIO_USER --background \ +                --user ${SERVIIO_USER--background \ 
-      --pidfile /var/run/serviio.pid +                --pidfile /var/run/serviio.pid 
-  eend $?+        eend $?
 } }
  
 stop() { stop() {
-  ebegin "Stopping Serviio Media Server" +        ebegin "Stopping Serviio Media Server" 
-    start-stop-daemon --stop --exec $SERVIIO_CMD +        ${SERVIIO_CMD} -stop 
-        --user $SERVIIO_USER --pidfile /var/run/serviio.pid +        start-stop-daemon --stop \ 
-  eend $?+                --user ${SERVIIO_USER--pidfile /var/run/serviio.pid 
 +        eend $?
 } }
 </file> </file>
Line 203: Line 204:
 <code> <code>
 # mv serviio_conf /etc/conf.d/serviio # mv serviio_conf /etc/conf.d/serviio
-# mv serviio_init /etc/conf.d/serviio +# mv serviio_init /etc/init.d/serviio 
-# chmod +x /etc/conf.d/serviio+# chmod +x /etc/init.d/serviio
 </code> </code>
  
 +You can then start and stop Serviio with:
  
 +<code>
 +# /etc/init.d/serviio start
 + * Starting Serviio Media Server ...  [ ok ]
 +# /etc/init.d/serviio stop
 + * Stopping Serviio Media Server ...  [ ok ]
 +</code>
 +
 +To get Serviio to start automatically on startup:
 +
 +<code>
 +# rc-update add serviio default
 +</code>
 ~~NOTOC~~ ~~NOTOC~~
howto/linux/install/gentoo.txt · Last modified: 2015/01/19 14:51 by zip