savonet / liquidsoap-daemon

Daemonization scripts for liquidsoap
37 stars 11 forks source link

liquidsoap-daemon

Run liquidsoap as daemon!

This script configures your system to run your liquidsoap script, automatically and in the background. It currently supports the following init systems:

Install

<script name> can be one of:

It is recommended to place your script files in ~/liquidsoap-daemon/script/.

That's it, the daemon files are installed!

By default, the script installs a Systemd service. If you want to install files for another system, you can do:

init_type=<init system> ./daemonize-liquidsoap.sh <script-name>

Valid modes are currently: systemd (default), initd, launchd.

Optionally you can change the default base_dir location:

base_dir=</your/full/path> ./daemonize-liquidsoap.sh <script-name>

Run

Once you have installed the daemonization scripts, you need to start the daemon as follows:

Remove

You can also stop the daemon and remove the files installed by the script by running:

mode=remove [init_type=<init system>] ./daemonize-liquidsoap.sh <script-name>

Dependencies

To run this script, you will need the sudo command. On Debian and Ubuntu, run:

apt install sudo

And configure as needed.

To install the initd scripts on older Debian systems (before 8), you will need the update-rc.d command. On Debian, run:

apt-get install init-system-helpers