SHOUTcast-Control-ScriptSystem requirements
DescriptionThis 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 termsWith downloading the packages listed below you automatically accept the applicable license terms. Download
RatingRate my SHOUTcast-Control-Script at PHP-Resource Downloadcount
|
||
|
|
|
|
|
Copyright © Michael Kaps 2006-2012 |
||