Walter York
2017-May-29 14:21 UTC
[Icecast] Proper way to start multiple icecast services through bash script?
I have 4 instances of icecast running on my server. #Command to start icecast /usr/bin/icecast -c /etc/icecast.xml -b & /usr/bin/icecast -c /etc/icecast1.xml -b & /usr/bin/icecast -c /etc/icecast2.xml -b & /usr/bin/icecast -c /etc/icecast3.xml -b & I am trying to integrate an automated Let's Encrypt Certificate renewal. My testing found that I need to restart the icecast processes for the certificate to update. I created a bash script that would open the firewall port, renew the cert, combine the certificates, overwrite the old cert, close the firewall port, kill the icecast services and then start them. Everything works except for the restarting of the services. Killing them works fine but starting them hangs. Please help me create the steps to start the 4 icecast instances via bash. I have tried no & and && as well. Feeling really stupid right now. Thank you in advance for your time and please spell out the answer without assuming my knowledge or lacktherof! 😉 #Kill all processes with the name icecast ps -ef | grep icecast | grep -v grep | awk '{print $2}' | xargs -r kill -9 #Start my icecast instances /usr/bin/icecast -c /etc/icecast.xml -b & /usr/bin/icecast -c /etc/icecast1.xml -b & /usr/bin/icecast -c /etc/icecast2.xml -b & /usr/bin/icecast -c /etc/icecast3.xml -b & PS: If I can get this working I can post it to github for everyone who would like to secure their icecast traffic and renew it automatically. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20170529/caee185c/attachment.html>
Marvin Scholz
2017-May-29 14:23 UTC
[Icecast] Proper way to start multiple icecast services through bash script?
Any specific reason to run 4 Icecasts? On 29 May 2017, at 16:21, Walter York wrote:> I have 4 instances of icecast running on my server. > > > #Command to start icecast > /usr/bin/icecast -c /etc/icecast.xml -b & > /usr/bin/icecast -c /etc/icecast1.xml -b & > /usr/bin/icecast -c /etc/icecast2.xml -b & > /usr/bin/icecast -c /etc/icecast3.xml -b & > > > I am trying to integrate an automated Let's Encrypt Certificate > renewal. My testing found that I need to restart the icecast > processes for the certificate to update. I created a bash script that > would open the firewall port, renew the cert, combine the > certificates, overwrite the old cert, close the firewall port, kill > the icecast services and then start them. > > > Everything works except for the restarting of the services. Killing > them works fine but starting them hangs. Please help me create the > steps to start the 4 icecast instances via bash. I have tried no & > and && as well. Feeling really stupid right now. Thank you in > advance for your time and please spell out the answer without assuming > my knowledge or lacktherof! 😉 > > > #Kill all processes with the name icecast > ps -ef | grep icecast | grep -v grep | awk '{print $2}' | xargs -r > kill -9 > #Start my icecast instances > > /usr/bin/icecast -c /etc/icecast.xml -b & > /usr/bin/icecast -c /etc/icecast1.xml -b & > /usr/bin/icecast -c /etc/icecast2.xml -b & > /usr/bin/icecast -c /etc/icecast3.xml -b & > > > PS: If I can get this working I can post it to github for everyone who > would like to secure their icecast traffic and renew it automatically. > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast
Walter York
2017-May-29 14:27 UTC
[Icecast] Proper way to start multiple icecast services through bash script?
Yes, the web players I've tested have a hard time parsing meta properly using only one instance with separate streams. Tested at least 6 of them looking for reliable meta and cross browser/OS compatibility. On May 29, 2017, at 10:23 AM, Marvin Scholz <epirat07 at gmail.com<mailto:epirat07 at gmail.com>> wrote: Any specific reason to run 4 Icecasts? On 29 May 2017, at 16:21, Walter York wrote: I have 4 instances of icecast running on my server. #Command to start icecast /usr/bin/icecast -c /etc/icecast.xml -b & /usr/bin/icecast -c /etc/icecast1.xml -b & /usr/bin/icecast -c /etc/icecast2.xml -b & /usr/bin/icecast -c /etc/icecast3.xml -b & I am trying to integrate an automated Let's Encrypt Certificate renewal. My testing found that I need to restart the icecast processes for the certificate to update. I created a bash script that would open the firewall port, renew the cert, combine the certificates, overwrite the old cert, close the firewall port, kill the icecast services and then start them. Everything works except for the restarting of the services. Killing them works fine but starting them hangs. Please help me create the steps to start the 4 icecast instances via bash. I have tried no & and && as well. Feeling really stupid right now. Thank you in advance for your time and please spell out the answer without assuming my knowledge or lacktherof! 😉 #Kill all processes with the name icecast ps -ef | grep icecast | grep -v grep | awk '{print $2}' | xargs -r kill -9 #Start my icecast instances /usr/bin/icecast -c /etc/icecast.xml -b & /usr/bin/icecast -c /etc/icecast1.xml -b & /usr/bin/icecast -c /etc/icecast2.xml -b & /usr/bin/icecast -c /etc/icecast3.xml -b & PS: If I can get this working I can post it to github for everyone who would like to secure their icecast traffic and renew it automatically. ________________________________ Icecast mailing list Icecast at xiph.org http://lists.xiph.org/mailman/listinfo/icecast ________________________________ Icecast mailing list Icecast at xiph.org http://lists.xiph.org/mailman/listinfo/icecast -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20170529/13f37b57/attachment.html>
Possibly Parallel Threads
- Proper way to start multiple icecast services through bash script?
- Proper way to start multiple icecast services through bash script?
- Proper way to start multiple icecast services through bash script?
- Proper way to start multiple icecast services through bash script?
- Proper way to start multiple icecast services through bash script?