This is a shell script for managing a uTorrent server on a linux operating system. The script provides start, stop, restart, status, and log functionalities for the uTorrent seedbox.
The script starts by defining the location of the log file, PID file, and the location of the extracted uTorrent server. The nice value, which determines the priority of the process, is also defined.
The uTorrentServer function starts the uTorrent server with the defined nice value, log file location, and PID file location.
The script then uses a case statement to determine the action to be taken based on the first argument passed to the script:
start: starts the uTorrent server
stop: stops the uTorrent server and removes the PID file and log file
status: displays the status of the uTorrent server and its PID, if running
restart: stops and then starts the uTorrent server
log: displays the contents of the log file, if the server is running
If an invalid argument is passed, the script displays a usage message.
This script provides a convenient way to manage a uTorrent server and make it start during boot on a linux server.