Compare commits
4 Commits
release-0.
...
release-0.
| Author | SHA1 | Date | |
|---|---|---|---|
| edc2439232 | |||
| bd74b0f54e | |||
| cd93f13f41 | |||
| 21bd423f02 |
29
build/ripping-cluster-worker.init-gentoo
Normal file
29
build/ripping-cluster-worker.init-gentoo
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/sbin/runscript
|
||||||
|
# Copyright 1999-2010 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
PID_FILE="/var/run/ripping-cluster-worker.pid"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need localmount net
|
||||||
|
use dns logger puppetmaster netmount nfsmount
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
ebegin "Starting ripping-cluster-worker"
|
||||||
|
start-stop-daemon --start --quiet \
|
||||||
|
--pidfile ${PID_FILE} \
|
||||||
|
--exec /usr/bin/php /usr/lib/ripping-cluster/worker/ripping-cluster-worker.php
|
||||||
|
eend $? "Failed to start ripping-cluster-worker"
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
ebegin "Stopping ripping-cluster-worker"
|
||||||
|
start-stop-daemon --stop --quiet \
|
||||||
|
--pidfile ${PID_FILE}
|
||||||
|
local ret=$?
|
||||||
|
eend ${ret} "Failed to stop puppet"
|
||||||
|
rm -f ${PID_FILE}
|
||||||
|
return ${ret}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,5 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Framework Library path
|
||||||
|
*
|
||||||
|
* Specifies the absolute or relative path to the Sihnon Framework library directory, relative to the webui root directory.
|
||||||
|
* Path must end with a trailing slash.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
define('SihnonFramework_Lib', '/usr/lib/sihnon-php-lib/source/lib/');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Library path
|
||||||
|
*
|
||||||
|
* Specifies the absolute or relative path to the Sihnon library directory, relative to the webui root directory.
|
||||||
|
* Path must end with a trailing slash.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
define('Sihnon_Lib', '/usr/lib/ripping-cluster/source/lib/');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RippingCluster Library path
|
* RippingCluster Library path
|
||||||
*
|
*
|
||||||
@@ -8,16 +28,65 @@
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
define('RippingCluster_Lib', '../lib/');
|
define('RippingCluster_Lib', '/usr/lib/ripping-cluster/source/lib/');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RippingCluster Database Configuration
|
* Sihnon Database Support
|
||||||
|
*
|
||||||
|
* Specifies whether or not to include database support in the Framework
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
define('Sihnon_DatabaseSupport', true);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Database Configuration
|
||||||
*
|
*
|
||||||
* Specifies the absolute or relative path to the RippingCluster database configuration file.
|
* Specifies the absolute or relative path to the Sihnon database configuration file, required when Database support is enabled.
|
||||||
* This is a standard ini type file, containing the config required to connect to the database.
|
* This is a standard ini type file, containing the config required to connect to the database.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
define('RippingCluster_DBConfig', '../dbconfig.conf');
|
define('Sihnon_DBConfig', '/etc/ripping-cluster/dbconfig.conf');
|
||||||
|
|
||||||
?>
|
/**
|
||||||
|
* Sihnon Config Plugin
|
||||||
|
*
|
||||||
|
* Specifies the plugin to use for configuration value storage.
|
||||||
|
* Options include:
|
||||||
|
* - Database (Requires Database Support to be enabled, and the Sihnon_ConfigTable option set)
|
||||||
|
* - FlatFile (Requires the Sihnon_ConfigFile option set)
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
define('Sihnon_ConfigPlugin', 'Database');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Config Table
|
||||||
|
*
|
||||||
|
* Specifies the name of the database table thats used for storing configuration values
|
||||||
|
* when the Database Config Plugin is used.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
define('Sihnon_ConfigTable', 'settings');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Config File
|
||||||
|
*
|
||||||
|
* Specifies the name of the file used to store configuration values when the FlatFile Config Plugin is used
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
define('Sihnon_ConfigFile', '/etc/ripping-cluster/settings.txt');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sihnon Development Mode
|
||||||
|
*
|
||||||
|
* Specifies whether or not the Framework should operate in debug mode
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
define('Sihnon_Dev', false);
|
||||||
|
|
||||||
|
?>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
hostname = localhost
|
hostname = localhost
|
||||||
username = handbrake
|
username = ripping
|
||||||
password = handbrake
|
password = ripping
|
||||||
dbname = handbrake_cluster
|
dbname = ripping_cluster
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
define('HBC_File', 'worker');
|
define('HBC_File', 'worker');
|
||||||
|
|
||||||
require_once '../private/config.php';
|
require_once '/etc/ripping-cluster/config.php';
|
||||||
require_once(SihnonFramework_Lib . 'SihnonFramework/Main.class.php');
|
require_once(SihnonFramework_Lib . 'SihnonFramework/Main.class.php');
|
||||||
require_once 'Net/Gearman/Worker.php';
|
require_once 'Net/Gearman/Worker.php';
|
||||||
|
|
||||||
Reference in New Issue
Block a user