Answer the question
In order to leave comments, you need to log in
How to normally run a command in centos?
Now I start icecast via shell with the command
/opt/icecast/latest/bin/icecast -c /opt/icecast/latest/etc/icecast.xml -b
Answer the question
In order to leave comments, you need to log in
create file /etc/systemd/system/icecast.service and write to it
[Unit]
Description=Icecast Network Audio Streaming Server
After=network.target
[Service]
ExecStart=/opt/icecast/latest/bin/icecast -c /opt/icecast/latest/etc/icecast.xml -b
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question