[webmin-devel] foobar module examples problems/questions
marty leisner <[email protected]> Wed, 5 Mar 2014 00:58:42 -0500
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <CAPNO-haPO_C617rbFW=f9LLbnG2+eOU49xRmpbLpDPkqi8wyWg@mail.gmail.com> |
--===============4721300534665080433==
Content-Type: multipart/alternative; boundary=047d7bea3636e394c704f3d5b81e
--047d7bea3636e394c704f3d5b81e
Content-Type: text/plain; charset=ISO-8859-1
1) the arguments in apply_configuration to
kill_byname_logged
seems backwards:
: leisner@t7400 10:50:07;rcsdiff -u foobar-lib.pl
===================================================================
RCS file: foobar-lib.pl,v
retrieving revision 1.2
diff -u -r1.2 foobar-lib.pl
--- foobar-lib.pl 2014/03/04 15:36:41 1.2
+++ foobar-lib.pl 2014/03/04 15:37:03
@@ -83,7 +83,7 @@
=cut
sub apply_configuration
{
-kill_byname_logged('HUP', 'foobard');
+kill_byname_logged('foobard', 'HUP');
}
2) I wrote a simple program for foobard
#include <unistd.h>
main()
{
pause();
}
I'm using xml-rpc to execute "apply_configuration".
I definitely see it working, but I don't see anything being logged. (I
saw something being logged when I "added a website" in foobar).
marty
--047d7bea3636e394c704f3d5b81e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><div>1) the arguments in apply_configuration to=A0</di=
v><div><br></div><div>kill_byname_logged</div><div><br></div><div>seems bac=
kwards:</div><div><br></div><div><span style=3D"font-family:courier new,mon=
ospace">: leisner@t7400 10:50:07;rcsdiff -u <a href=3D"http://foobar-lib.pl=
" target=3D"_blank">foobar-lib.pl</a><br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D</span><span style=3D"font-family:courier new,monospace">=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D</span><span style=3D"font-family:courier new,monospace">=3D=3D=
=3D=3D=3D=3D=3D<br>RCS file: <a href=3D"http://foobar-lib.pl" target=3D"_bl=
ank">foobar-lib.pl</a>,v<br>
retrieving revision 1.2<br>diff -u -r1.2 <a href=3D"http://foobar-lib.pl" t=
arget=3D"_blank">foobar-lib.pl</a><br>
--- <a href=3D"http://foobar-lib.pl" target=3D"_blank">foobar-lib.pl</a> =
2014/03/04 15:36:41 1.2<br>+++ <a href=3D"http://foobar-lib.pl" tar=
get=3D"_blank">foobar-lib.pl</a> 2014/03/04 15:37:03<br>@@ -83,7 +83,=
7 @@<br>
=3Dcut<br> sub apply_configuration<br>
{<br>-kill_byname_logged('HUP', 'foobard');<br>+kill_bynam=
e_logged('foobard', 'HUP');<br> }<br></span> <span style=3D=
"font-family:courier new,monospace"><br></span></div><div><br></div><div>
2) I wrote a simple program for foobard</div><div><br></div><div><span styl=
e=3D"font-family:courier new,monospace">
#include <unistd.h><br><br>main()<br>{<br> pause();<br>}<br></=
span></div><div><br></div><div>I'm using xml-rpc to execute "apply=
_configuration".</div><div><br></div><div>I definitely see it working,=
but I don't see anything being logged.=A0=A0 (I saw something being lo=
gged when I "added a website" in foobar).<br>
<br></div><div>marty<br></div>
<div><br></div><div><br></div></div>
--047d7bea3636e394c704f3d5b81e--
--===============4721300534665080433==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
--===============4721300534665080433==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
--===============4721300534665080433==--