-
Hi Liquidsoapers, In a current project, I make use of the possibility to pass multiple liquidsoap radio.liq output.liq Specifically, I use this to test my However, I now would like to dameonize my Liquidsoap script on the server, for which I guess the How would I go about using it in my specific situation? Could I simply call daemonize-liquidsoap.sh radio.liq output.liq Would I need to work with includes of some sort? Any other ideas? Many thanks for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You can simply include
I don't know which distro/os you use but if comes with Say you have your script at You may create systemd file. Please execute following commands:
A new file will open, paste the following into it (remember we are taking into account, that you have created [Unit]
Description=Liquidsoap daemon for %I
After=network.target
Documentation=https://www.liquidsoap.info/
[Service]
Type=simple
# edit your user name
User=radio
ExecStart=liquidsoap /home/radio/liquidsoap/%I.liq
Restart=always
[Install]
WantedBy=multi-user.target
Press control + x and enter to save this file. Execute following commands
To start/stop the service you can execute usual systemd commands: This will enable your liquidsoap script ( Same way you can add second instance with different outputs and enable it as easy as |
Beta Was this translation helpful? Give feedback.
-
Thanks for this answer @gAlleb ! |
Beta Was this translation helpful? Give feedback.
You can simply include
output.liq
intoradio.liq
in the end of a file:output.liq
should be in the same directory.daemonize-liquidsoap.sh script
seems to be very outdated. Not sure that it's a good idea to use it.I don't know which distro/os you use but if comes with
systemd
I would recommend using it to control your liquidsoap instance:Say you have your script at
/home/radio/liquidsoap/myradio1.liq
and you user is calledradio
You may create systemd file. Please execute following commands:
sudo nano /etc/systemd/system/[email protected]
A new file will open, paste the…