Bladeren bron

Icecast on port 80

Bob Mottram 7 jaren geleden
bovenliggende
commit
c0e6b42e03
1 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 2
    3
      src/freedombone-app-icecast

+ 2
- 3
src/freedombone-app-icecast Bestand weergeven

@@ -76,11 +76,10 @@ function icecast_update_daemon {
76 76
     echo 'After=icecast2.service' >> /etc/systemd/system/ices2.service
77 77
     echo '' >> /etc/systemd/system/ices2.service
78 78
     echo '[Service]' >> /etc/systemd/system/ices2.service
79
+    echo 'Type=oneshot' >> /etc/systemd/system/ices2.service
79 80
     echo 'User=icecast2' >> /etc/systemd/system/ices2.service
80 81
     echo 'Group=icecast' >> /etc/systemd/system/ices2.service
81 82
     echo "ExecStart=/usr/bin/ices2 /etc/ices2/ices-playlist.xml" >> /etc/systemd/system/ices2.service
82
-    echo 'Restart=on-failure' >> /etc/systemd/system/ices2.service
83
-    echo 'RestartSec=10' >> /etc/systemd/system/ices2.service
84 83
     echo '' >> /etc/systemd/system/ices2.service
85 84
     echo '[Install]' >> /etc/systemd/system/ices2.service
86 85
     echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ices2.service
@@ -460,7 +459,7 @@ function install_icecast {
460 459
         fi
461 460
     fi
462 461
 
463
-    ICECAST_ONION_HOSTNAME=$(add_onion_service icecast ${ICECAST_PORT} ${ICECAST_ONION_PORT})
462
+    ICECAST_ONION_HOSTNAME=$(add_onion_service icecast 80 ${ICECAST_ONION_PORT})
464 463
 
465 464
     sed -i  -e "s|<source-password>[^<]*</source-password>|<source-password>$ICECAST_PASSWORD</source-password>|" \
466 465
         -e "s|<relay-password>[^<]*</relay-password>|<relay-password>$ICECAST_PASSWORD</relay-password>|" \