|
|
Event Driven LL Interface1) Create and enable the Loadleveler submit filter
Step 1) Create a submit filter. The LL submit filter functions by taking a users job command file as STDIN and sending the command file LL should process to STDOUT. If the submit filter is successful, it should exit with a status of 0. A simple sample script is provided below: -----------
system("/usr/local/sbin/wakeup > /dev/null");
1) create file 'wakeup.c' To enable use of this script you must set SUBMITFILTER parameter
in the LoadL_config file.
Step 2) Create wrapper The maui command 'schedctl' is not normally available to general end users. The wrapper allows users to issue a command to request that scheduling resume to process a newly submitted job. wakeup.c
#define MAUIADMIN "loadl"
void main() {
if ((buf = getpwnam(MAUIADMIN)) == NULL)
setuid(buf->pw_uid); system("SCHEDCTLCMD -r 1"); exit(0);
2) edit 'MAUIADMIN' and 'SCHEDCTLCMD' #defines in 'wakeup.c' as needed 3) compile code 4) make 'wakeup' owned by MAUIADMIN > chown loadl wakeup 5) make 'wakeup' setuid for owner > chmod 4711 wakeup 6) verify non-admin users can successfully run 'wakeup'
|
|
| © 2001-2008 Cluster Resources, Incorporated | |