chiark / gitweb /
debugging for thing that crashed
[innduct.git] / scripts / innshellvars.in
1 #!@_PATH_SH@
2 ##  $Revision: 7466 $
3 ##  Set up any and all shell variables that an INN shell script
4 ##  might need.  Also sets umask.
5
6 ## NOTE: When adding stuff here, add the corresponding variables to 
7 ## innshellvars.pl and innshellvars.tcl and innshellvars.csh
8
9 eval `@prefix@/bin/innconfval -s`
10
11 NEWSHOME=${PATHNEWS}
12 SPOOLBASE=${PATHSPOOL}
13 MOST_LOGS=${PATHLOG}
14 export NEWSHOME SPOOL MOST_LOGS
15
16 NEWSBIN=${PATHBIN}
17 NEWSETC=${PATHETC}
18 NEWSLIB=@LIBDIR@
19 INNDDIR=${PATHRUN}
20 LOCKS=${PATHRUN}
21 export NEWSBIN NEWSETC INNDDIR NEWSHOME
22
23 ERRLOG=${MOST_LOGS}/errlog
24 LOG=${MOST_LOGS}/news
25
26 ARCHIVEDIR=${PATHARCHIVE}
27 SPOOL=${PATHARTICLES}
28 BATCH=${PATHOUTGOING}
29 INCOMING=${PATHINCOMING}
30 OVERVIEWDIR=${PATHOVERVIEW}
31 SPOOLNEWS=${PATHINCOMING}
32 BADNEWS=${PATHINCOMING}/bad
33
34 ACTIVE=${PATHDB}/active
35 ACTIVETIMES=${PATHDB}/active.times
36 CTLFILE=${NEWSETC}/control.ctl
37 CTLWATCH=${NEWSETC}/innwatch.ctl
38 HISTORY=${PATHDB}/history
39 NEWACTIVE=${PATHDB}/active.tmp
40 NEWSFEEDS=${NEWSETC}/newsfeeds
41 NEWSGROUPS=${PATHDB}/newsgroups
42 OLDACTIVE=${PATHDB}/active.old
43 PATH_MOTD=${NEWSETC}/motd.news
44 EXPIRECTL=${NEWSETC}/expire.ctl
45 LOCALGROUPS=${NEWSETC}/localgroups
46
47 CONTROLPROGS=${PATHCONTROL}
48 INNCONFVAL=${NEWSBIN}/innconfval
49 INND=${NEWSBIN}/innd
50 INNDSTART=${NEWSBIN}/inndstart
51 INNWATCH=${NEWSBIN}/innwatch
52 INEWS=${NEWSBIN}/inews
53 RNEWS=${NEWSBIN}/rnews
54 PERL_STARTUP_INND=${PATHFILTER}/startup_innd.pl
55 PERL_FILTER_INND=${PATHFILTER}/filter_innd.pl
56 PERL_FILTER_NNRPD=${PATHFILTER}/filter_nnrpd.pl
57 PYTHON_FILTER_INND=${PATHFILTER}/filter_innd.py
58 PATH_PYTHON_INN_MODULE=${PATHFILTER}/INN.py
59 PATH_TCL_STARTUP=${PATHFILTER}/startup.tcl
60 PATH_TCL_FILTER=${PATHFILTER}/filter.tcl
61
62 DAILY=${LOCKS}/LOCK.news.daily
63
64 NEWSCONTROL=${INNDDIR}/control
65 NNTPCONNECT=${INNDDIR}/nntpin
66 SERVERPID=${INNDDIR}/innd.pid
67 INNWSTATUS=${INNDDIR}/innwatch.status
68 WATCHPID=${INNDDIR}/innwatch.pid
69
70 AWK=@_PATH_AWK@
71 SED=@_PATH_SED@
72 INNDF=${NEWSBIN}/inndf
73 EGREP=@_PATH_EGREP@
74 PERL=@_PATH_PERL@
75 GPGV=@PATH_GPGV@
76 PGP=@_PATH_PGP@
77 SORT="@_PATH_SORT@"
78 GETFTP="@GETFTP@"
79 UUX=@_PATH_UUX@
80
81 COMPRESS=@COMPRESS@
82 GZIP=@GZIP@
83 UNCOMPRESS="@UNCOMPRESS@"
84 LOG_COMPRESS=@LOG_COMPRESS@
85 Z=@LOG_COMPRESSEXT@
86
87 if [ "$OVMETHOD" = "ovdb" ]; then
88     DB_HOME="${PATHOVERVIEW}"
89     export DB_HOME
90 fi
91
92 TEMPSOCK=`basename ${INNDDIR}/ctlinndXXXXXX | ${SED} -e 's/XXXXXX$/*/'`
93 TEMPSOCKDIR=`echo ${INNDDIR}/ctlinndXXXXXX | ${SED} -e 's@/[^/]*$@@'`
94
95 HAVE_UUSTAT=@HAVE_UUSTAT@
96
97 NEWSMASTER=@NEWSMASTER@
98 NEWSUSER=@NEWSUSER@
99 NEWSGROUP=@NEWSGRP@
100
101 TMPDIR=${PATHTMP}; export TMPDIR;
102
103 SPOOLTEMP=${PATHTMP}
104
105 NEWSLBIN=${NEWSHOME}/local
106 export NEWSLBIN
107
108 umask @NEWSUMASK@
109
110 PATH=${NEWSLBIN}:${NEWSBIN}:${PATH}:/bin:/usr/bin:/usr/ucb
111 export PATH
112
113 HOME=$PATHNEWS
114 export HOME