User Tools

Site Tools


computing:airsonic

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
computing:airsonic [2022/07/31 21:02] oemb1905computing:airsonic [2022/10/16 05:23] oemb1905
Line 59: Line 59:
   wget https://github.com/airsonic-advanced/airsonic-advanced/releases/download/11.0.0-SNAPSHOT.20220625052932/airsonic.war   wget https://github.com/airsonic-advanced/airsonic-advanced/releases/download/11.0.0-SNAPSHOT.20220625052932/airsonic.war
      
-Once you run the .war it will create all necessary sub folders. I am still not clear on how to migrate meta-data between instances. The wget above is for the .war that is current as of this post; make sure to always check! +Once you run the .war it will create all necessary sub folders. I am still not clear on how to migrate meta-data between instances. The wget above is for the .war that is current as of this post; make sure to always check. Also, if your server stops/reboots, then you need a script to make sure that airsonic is running, and if not, to start it. To do that, I created the following: 
-   + 
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/31 15:00//+  #!/bin/sh 
 +  DATE=`date +"%Y%m%d-%H:%M:%S"
 + 
 +  if 
 + 
 +  ps -ef | grep "java -jar" > /home/sexa/Desktop/airsonic-tmp.log 
 +  tail -n -2 /home/sexa/Desktop/airsonic-tmp.log | grep "java -jar -Dserver.port=8081 /var/airsonic/airsonic.war" 
 + 
 +  then 
 + 
 +  echo "Arisonic was running at $DATE" >> /home/sexa/Desktop/airsonic-ok.log 
 + 
 +  else 
 + 
 +  export TERM='vt100' 
 +  su - airsonic <<SHT 
 +          script 
 +          screen -S airsonic bash -c "java -jar -Dserver.port=8081 /var/airsonic/airsonic.war; bash" 
 +  SHT 
 + 
 +  fi 
 + 
 +I tested this and it runs flawlessly. 
 + 
 + --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/10/15 23:21//
computing/airsonic.txt · Last modified: 2023/12/25 18:23 by oemb1905