index
:
drakx
distro/mdv2007.1
distro/mdv2008.0
distro/mdv2008.1
distro/mdv2009.0
distro/mdv2009.1
distro/mdv2010.0
distro/mes5
distro/mes5-2.6.33
distro/mes6
distro/mga1
distro/mga2
distro/mga3
distro/mga4
distro/mga5
distro/mga6
distro/mga7
distro/mga8
distro/mga9
master
topic/Corpo_2_1
topic/KA9_0
topic/MDK-10-update
topic/MDK-10_1-update
topic/MDK-10_2-update
topic/MDK-2006_0-update
topic/MDK92-branch
topic/MDKC_1_0
topic/PCMCIA_CS_DISTRO
topic/R9_0-64bit-branch
topic/R9_1_HP-branch
topic/a
topic/before_matchbox_wm
topic/bug-13680
topic/dietlibc
topic/efi
topic/extlinux
topic/firewall
topic/gdk-pixbuf-0-branch
topic/gi-ppc
topic/ia64-8_1
topic/mandrakesoft
topic/mlcd4
topic/ppp
topic/rp-pppoe
topic/switching_to_dnf
topic/switching_to_urpmi
topic/unlabeled-1.1.1
topic/v_webmin_0_87
topic/x86_64-branch
user/animtim/designWork
user/colin/rescue-systemd
user/ennael/mga6
user/erwan/bug-13680
user/jibz/aarch64
user/martinw/mga6
user/pterjan/arm64
Mageia Installer and base platform for many utilities
Thierry Vignaud [tv]
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
tools
/
ddcprobe
/
lrmi.h
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Thierry Vignaud <tvignaud@mandriva.org>
2002-10-16 12:30:57 +0000
committer
Thierry Vignaud <tvignaud@mandriva.org>
2002-10-16 12:30:57 +0000
commit
28452db1b08cc4d108fbb503d5785edca068b5f1
(
patch
)
tree
3b7fe639202ca688b9eb92bacd56c5665dafddbe
/
onfig
(
'-driver'
=>
Log
::
Agent
::
Driver
::
File-
>
make
(
'-prefix'
=>
$0,
'-showpid'
=>
1
,
'-file'
=>
'mdvonline.log'
,
),
#-caller => [ -display => '($sub/$line)', -postfix => 1 ],
'-priority'
=> [
'-display'
=>
'[
$priority
]'
],
);
logsay
"=================="
;
mdkonline
::
is_running
(
'mdvonline_agent'
)
and die
"mdvonline_agent already running
\n
"
;
require_root_capability
();
my
%conf
=
mdkonline
::
get_configuration
();
print
Dumper
(
%conf
);
!
defined
%conf
and
logwarn
"no configuration set"
,
exit
0
;
logsay
"checking for tasks"
;
print
Dumper
(
%conf
);
my
$answer
=
mdkonline
::
soap_get_task
(
$conf
{
HOST_ID
},
$conf
{
HOST_KEY
});
print
Dumper
(
$answer
);
if
(
$answer
->{
code
} ==
0
) {
if
(
$answer
->{
data
}{
command
}
eq
'none'
) {
logsay
"nothing to do"
;
}
else
{
logsay
"got something"
;
mdkonline
::
run_and_return_task
(
$answer
->{
data
});
}
exit
1
;
}
else
{
logwarn
"something went wrong "
.
$answer
->{
message
} .
" ("
.
$answer
->{
code
} .
")"
;
exit
0
;
}