-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from cmsdaq/hltd-160-candidate
hltd 1.6.0 merge to master
- Loading branch information
Showing
45 changed files
with
3,052 additions
and
1,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python2.6 | ||
import cgi | ||
import os | ||
print "Content-Type: text/html" # HTML is following | ||
|
||
try: | ||
cloud = os.listdir('/etc/appliance/resources/cloud') | ||
print len(cloud) | ||
except Exception as ex: | ||
print ex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python2.6 | ||
import cgi | ||
import os | ||
form = cgi.FieldStorage() | ||
print "Content-Type: text/html" # HTML is following | ||
print "<TITLE>CGI script exclude</TITLE>" | ||
|
||
try: | ||
os.unlink('exclude') | ||
except: | ||
pass | ||
fp = open('exclude','w+') | ||
fp.close() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python2.6 | ||
import cgi | ||
import os | ||
form = cgi.FieldStorage() | ||
print "Content-Type: text/html" # HTML is following | ||
print "<TITLE>CGI script exclude</TITLE>" | ||
|
||
try: | ||
os.unlink('include') | ||
except: | ||
pass | ||
fp = open('include','w+') | ||
fp.close() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cd $1 | ||
echo installing elasticsearch plugins... | ||
bin/plugin --url file:///opt/fff/esplugins/$2 --install $3 | ||
echo installing elasticsearch plugin $3 ... | ||
bin/plugin -s --url file:///opt/fff/esplugins/$2 --install $3 | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
cd $1 | ||
bin/plugin --remove $2 | ||
echo uninstalling elastic plugin $2 ... | ||
bin/plugin -s --remove $2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"DISABLED-dvbu-c2f34-30-01": | ||
{ | ||
"names":["main","testing"], | ||
"sizes":[20,30] | ||
}, | ||
"DISABLED-dvrubu-c2f34-17-03": | ||
{ | ||
"names":["testing"], | ||
"sizes":[0] | ||
}, | ||
"DISABLED-dvrubu-c2f34-17-04": | ||
{ | ||
"names":["testing"], | ||
"sizes":[0] | ||
}, | ||
"bu-vm-01-01.cern.ch": | ||
{ | ||
"names":["main","testing"], | ||
"sizes":[1000,500] | ||
}, | ||
"fu-vm-02-02.cern.ch": | ||
{ | ||
"names":["testing"], | ||
"sizes":[0] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright (C) 2008 Eugene A. Lisitsky | ||
* | ||
* The procname library for Python. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
* */ | ||
|
||
#include <Python.h> | ||
#include <sys/prctl.h> | ||
|
||
void Py_GetArgcArgv(int*, char***); | ||
|
||
PyDoc_STRVAR(procname__doc__, "Module for setting/getting process name"); | ||
|
||
static PyObject * | ||
procname_check(PyObject *self, PyObject *args) { | ||
return Py_BuildValue("i", 1); | ||
}; | ||
|
||
|
||
static PyObject * | ||
procname_getprocname(PyObject *self, PyObject *args) { | ||
int argc; | ||
char **argv; | ||
Py_GetArgcArgv(&argc, &argv); | ||
return Py_BuildValue("s", argv[0]); | ||
}; | ||
|
||
|
||
static PyObject * | ||
procname_setprocname(PyObject *self, PyObject *args) { | ||
int argc; | ||
char **argv; | ||
char *name; | ||
if (!PyArg_ParseTuple(args, "s", &name)) | ||
return NULL; | ||
Py_GetArgcArgv(&argc, &argv); | ||
strncpy(argv[0], name , strlen(name)); | ||
memset(&argv[0][strlen(name)], '\0', strlen(&argv[0][strlen(name)])); | ||
prctl (15 /* PR_SET_NAME */, name, 0, 0, 0); | ||
Py_INCREF(Py_None); | ||
return Py_None; | ||
}; | ||
|
||
|
||
static PyMethodDef procname_methods[] = { | ||
{"check", procname_check, METH_VARARGS, "Test func"}, | ||
{"getprocname", procname_getprocname, METH_VARARGS, | ||
"Get procname.\nReturns name (string)"}, | ||
{"setprocname", procname_setprocname, METH_VARARGS, | ||
"Set procname.\n name (string) -> new process name.\nReturns None."}, | ||
{NULL, NULL, 0, NULL} | ||
}; | ||
|
||
PyMODINIT_FUNC | ||
initprocname(void) { | ||
(void) Py_InitModule3("procname", procname_methods, procname__doc__); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
|
||
import distutils.core | ||
import distutils.util | ||
|
||
platform = distutils.util.get_platform() | ||
|
||
|
||
distutils.core.setup( | ||
name='procname', | ||
version='0.1', | ||
description='Process name renaming', | ||
author="Eugene A Lisitsky", | ||
license='LGPL', | ||
platforms='Linux', | ||
ext_modules=[distutils.core.Extension('procname', sources=['procnamemodule.c'])], | ||
) |
Oops, something went wrong.