move usdb init as per k1xx's bug
[spider.git] / html / spiderFAQ-2.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.16">
5  <TITLE>The DXSpider FAQ: Administration</TITLE>
6  <LINK HREF="spiderFAQ-1.html" REL=previous>
7  <LINK HREF="spiderFAQ.html#toc2" REL=contents>
8 <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
9 </HEAD>
10 <BODY>
11 Next
12 <A HREF="spiderFAQ-1.html">Previous</A>
13 <A HREF="spiderFAQ.html#toc2">Contents</A>
14 <HR>
15 <H2><A NAME="s2">2.</A> <A HREF="spiderFAQ.html#toc2">Administration</A></H2>
16
17 <H2><A NAME="ss2.1">2.1</A> <A HREF="spiderFAQ.html#toc2.1">How can I get Spider to restart automatically if it crashes?</A>
18 </H2>
19
20 <P>Put this line into /etc/inittab ..</P>
21 <P>
22 <BLOCKQUOTE><CODE>
23 <PRE>
24 DX:3:respawn:/bin/su -c "/usr/bin/perl -w /spider/perl/cluster.pl" sysop > /dev/tty7
25 </PRE>
26 </CODE></BLOCKQUOTE>
27 </P>
28 <P>Run <EM>telinit q</EM> as root.  Spider will restart so be aware.  However, any
29 time you reboot, cluster.pl will start in tty7 and if it crashes, it should restart ok.</P>
30
31 <H2><A NAME="ss2.2">2.2</A> <A HREF="spiderFAQ.html#toc2.2">How can I monitor traffic to and from a node or user?</A>
32 </H2>
33
34 <P>There are 2 ways to achieve this.  You can use the <EM>tail</EM> command like this ..</P>
35 <P>
36 <BLOCKQUOTE><CODE>
37 <PRE>
38 tail -f /spider/data/debug/167.dat |grep G0VGS
39 </PRE>
40 </CODE></BLOCKQUOTE>
41 </P>
42 <P>or in later versions of Spider, there is a command called <EM>watchdbg</EM> in which
43 case you simply type ..</P>
44 <P>
45 <BLOCKQUOTE><CODE>
46 <PRE>
47 watchdbg G0VGS
48 </PRE>
49 </CODE></BLOCKQUOTE>
50 </P>
51
52 <H2><A NAME="ss2.3">2.3</A> <A HREF="spiderFAQ.html#toc2.3">My neighbouring node cannot use the RCMD command to me, he just keeps getting the "tut tut" message.</A>
53 </H2>
54
55 <P>Assuming that the permissions are set correctly (perm level 5 required), it could be
56 that the home_node is set incorrectly.  You can reset the home_node using the <EM>spoof</EM>
57 command like this ..</P>
58 <P>
59 <BLOCKQUOTE><CODE>
60 <PRE>
61 spoof gb7adx set/home gb7adx
62 </PRE>
63 </CODE></BLOCKQUOTE>
64 </P>
65 <P>Assuming that the node_call you are changing is gb7adx.</P>
66
67 <H2><A NAME="ss2.4">2.4</A> <A HREF="spiderFAQ.html#toc2.4">I do not seem to be sending any bulletin mail to my link partners, what is wrong?</A>
68 </H2>
69
70 <P>There is a file in /spider/msg called forward.pl.issue.  Rename this to
71 forward.pl and edit it to meet your requirements.  You will need to issue
72 the command <EM>load/forward</EM> or restart Spider for the changes to 
73 take effect.</P>
74
75 <H2><A NAME="ss2.5">2.5</A> <A HREF="spiderFAQ.html#toc2.5">How can I automatically limit the amount of debug logfiles that are stored?</A>
76 </H2>
77
78 <P>Use the tmpwatch command.  Create a file in /etc/cron.daily/ containing the line ...</P>
79 <P>
80 <BLOCKQUOTE><CODE>
81 <PRE>
82 /usr/sbin/tmpwatch -f 240 /spider/data/debug
83 </PRE>
84 </CODE></BLOCKQUOTE>
85 </P>
86 <P>Remember to make it executable!</P>
87 <P>This will limit your debug data down to the last 10 days</P>
88
89 <H2><A NAME="ss2.6">2.6</A> <A HREF="spiderFAQ.html#toc2.6">I updated my Linux distribution and now Spider cannot read the users file or the dupefile, what is the problem?</A>
90 </H2>
91
92 <P>Almost certainly this is a change in the db format of perl.  Follow these
93 few steps to correct the problem.</P>
94 <P>
95 <UL>
96 <LI>stop the cluster (disable any autostart in inittab)</LI>
97 <LI>cd /spider/data</LI>
98 <LI>issue the command perl user_asc</LI>
99 <LI>restart the cluster</LI>
100 </UL>
101 </P>
102 <P>That should solve the problem.</P>
103
104 <H2><A NAME="ss2.7">2.7</A> <A HREF="spiderFAQ.html#toc2.7">Since I last updated I seem to be getting duplicate spots appearing.</A>
105 </H2>
106
107 <P>What has probably happened is that the dupefile has got corrupted in
108 some way.  Simply delete the /spider/data/dupefile and restart the
109 cluster.  It may take a little time to become fully functional but
110 should solve your problem.</P>
111
112 <H2><A NAME="ss2.8">2.8</A> <A HREF="spiderFAQ.html#toc2.8">I have deleted a message but it is still there, why?</A>
113 </H2>
114
115 <P>This is now the way messages are handled for deletion in Spider.  If you
116 look closely you will see a 'D' following the message number.  This 
117 message is marked for deletion and will be deleted in 2 days if nothing
118 further is done.  Optionally you can use the command <EM>delete/expunge</EM>
119 to delete it immediately.</P>
120
121 <HR>
122 Next
123 <A HREF="spiderFAQ-1.html">Previous</A>
124 <A HREF="spiderFAQ.html#toc2">Contents</A>
125 </BODY>
126 </HTML>