SHOUTcast-Control-Script



System requirements


  • Tested under: Debian Linux; SHOUTcast-Server 1.9.7
  • Package necessaries: pkill
  • Package optionality: pgrep, screen


Description


This SHOUTcast-Control-Script offers the possibility to start, stop and restart the services of the SHOUTcast server of the company Nullsoft.
Also for the case, if the server wouldn't be able to stop with restricted rights, there is a stop-force function implemented which enables you to try to stop the server with full superuser-rights (Parameter: stop-force).

The scripts offers additionally the possiblity to be executed by crontab, whereby a control by time of the SHOUTcast server is possible.
Moreover this script is full usable as RC-script for the system.

You have the possiblity to run the script under any user to increase the server-security.
For this reason the SHOUTcast-Control-Script checks on every start, if the user is sure to start the server with full superuser-rights or better cancel the start-process to proceed later with different rights.

This all make it possible, that even users, which have less experience in the field of linux, can control their SHOUTcast-server without any problems.

The 2 different functional principles:
The script recognizes at start automatically, if the program preg is installed, which can regognize the status of the SHOUTcast-server.
If the program is not installed or the user sets especially the option $use_pid=1, then the script doesn't use the program pgrep, but rather creates so called PID-files (Check-files), which signals the SHOUTcast-Control-Script on a new startup, if the server is already online or still offline.

However latter method is not very reliable, if e. g. the user change the status of the server manually without the script or the SHOUTcast-server is stopped because of an error.
The PID-file remains anyhow in its standard-folder $path_shoutcast and signals the script the online-status of the SHOUTcast server, also when it's still offline.

To easily create and delete the PID-files (Check-files), the PID-version of my script contains the function to create and delete these PID-files, if the status of the server has been changed script-independently (Parameter: switch-status).

Should the program preg not be installed, it's highly recommend to fetch it later.
You should also only enable the PID-function manually with $use_pid_master=1, if you know which problems can occur.



Licence terms


With downloading the packages listed below you automatically accept the applicable license terms.


Download


  • Version 1.0: ZIP-Package (Release: 07.02.2008)
    Size: 4,44 KB
    MD5-Hash: 55945cb165d7ec344ca5949b8215e83f
  • Version 1.0: TAR.GZ-Package (Release: 07.02.2008)
    Size: 4,35 KB
    MD5-Hash: 86c0b49ebfc8109319eb8dfc28e131ed



Rating


Rate my SHOUTcast-Control-Script at PHP-Resource


Downloadcount


  • Downloads of version 1.0 until now ZIP-Package: 2228
  • Downloads of version 1.0 until now TAR.GZ-Package: 1763
Which mobile phone features do you really need?
Photocamera
UMTS
W-LAN
Multitouch
QWERTY-Keyboard
Photolight