Автостарт icecast через systemd

# touch /etc/systemd/system/icecast.service

[Unit]
Description=Icecast Network Audio Streaming Server
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/Icecast-Server/bin/icecast -c /usr/local/Icecast-Server/etc/icecast.xml
ExecReload=/bin/kill -HUP $MAINPID
User=radio
Group=radio
WorkingDirectory=/usr/local/Icecast-Server

[Install]
WantedBy=multi-user.target

# systemctl enable icecast

# systemctl start icecast
# systemctl stop icecast
# systemctl restart icecast
 

Немає коментарів: