Merge debian directory from tor-0_1_0-patches to HEAD

svn:r4758
This commit is contained in:
Peter Palfrader 2005-08-09 13:11:00 +00:00
parent 4ce34c013e
commit c12d81d654
6 changed files with 1292 additions and 17 deletions

67
debian/changelog vendored
View File

@ -1,6 +1,55 @@
tor (0.1.0.7-rc-200505171420-1) UNRELEASED; urgency=low
tor (0.1.0.14-1) unstable; urgency=high
* CVS snapshot: 2005-05-17 14:20 UTC.
* New upstream version - changes, among others:
- Fixes the other half of the bug with crypto handshakes.
* Since gs-gpl on s390 is broken (#321435) and unable to
build PDFs of our images for the design paper this version
ships them in the source and uses them on s390, should building
them from source really fail.
* Increase standards-version from 3.6.1 to 3.6.2. No changes
necessary.
-- Peter Palfrader <weasel@debian.org> Mon, 8 Aug 2005 23:55:05 +0200
tor (0.1.0.13-1) unstable; urgency=high
* New upstream version:
- Explicitly set no-unaligned-access for sparc in configure.in.
it turns out the new gcc's let you compile broken code, but
that doesn't make it not-broken (closes: #320140).
- Fix a critical bug in the security of our crypto handshakes.
(Therefore set urgency to high).
and more (see upstream changelog).
* Slightly improve init script to give you proper error messages when
you do not run it as root.
-- Peter Palfrader <weasel@debian.org> Fri, 5 Aug 2005 01:27:49 +0200
tor (0.1.0.12-1) unstable; urgency=medium
* New upstream version:
- New IP for tor26 directory server,
- fix a possible double-free in tor_gzip_uncompress,
- and more (see upstream changelog).
-- Peter Palfrader <weasel@debian.org> Tue, 19 Jul 2005 17:36:24 +0200
tor (0.1.0.11-1) unstable; urgency=high
* New upstream version (closes: #316753):
- Fixes a serious bug: servers now honor their exit policies -
In 0.1.0.x only clients enforced them so far. 0.0.9.x is
not affected.
* Build depend on libevent-dev >= 1.1.
* Urgency high because 0.0.9.10-1 did not make it into testing after
like 3 weeks because of an impending ftp-master move. So I might
just as well upload this one.
-- Peter Palfrader <weasel@debian.org> Mon, 4 Jul 2005 17:53:48 +0200
tor (0.1.0.10-0.pre.1) UNRELEASED; urgency=low
* New upstream version.
* Add a watch file.
* Forward port 03_tor_manpage_in_section_8.
* Forward port 06_add_compile_time_defaults.
@ -14,8 +63,20 @@ tor (0.1.0.7-rc-200505171420-1) UNRELEASED; urgency=low
Of course the -dev package needs to be installed.
* Update README.Debian to say that upstream now does have a default
for DataDirectory.
* Don't fail in the init script when we cannot raise the ulimit.
Instead just warn a bit (closes: #312882).
-- Peter Palfrader <weasel@debian.org> Tue, 17 May 2005 16:18:35 +0200
-- Peter Palfrader <weasel@debian.org> Wed, 15 Jun 2005 16:38:06 +0200
tor (0.0.9.10-1) unstable; urgency=high
* While we're waiting for a newer libevent to enter sid, make another
upload of the 0.0.9.x tree:
- Refuse relay cells that claim to have a length larger than the
maximum allowed. This prevents a potential attack that could read
arbitrary memory (e.g. keys) from an exit server's process.
-- Peter Palfrader <weasel@debian.org> Thu, 16 Jun 2005 22:56:11 +0200
tor (0.0.9.9-1) unstable; urgency=low

4
debian/control vendored
View File

@ -2,8 +2,8 @@ Source: tor
Section: comm
Priority: optional
Maintainer: Peter Palfrader <weasel@debian.org>
Build-Depends: debhelper (>= 4.1.65), libssl-dev, dpatch, zlib1g-dev, libevent-dev (>= 1.0), tetex-bin, tetex-extra, transfig, gs
Standards-Version: 3.6.1
Build-Depends: debhelper (>= 4.1.65), libssl-dev, dpatch, zlib1g-dev, libevent-dev (>= 1.1), tetex-bin, tetex-extra, transfig, gs
Standards-Version: 3.6.2
Package: tor
Architecture: any

155
debian/hexdump-cell-struct.pdf vendored Normal file
View File

@ -0,0 +1,155 @@
255044462d312e330a25c7ec8fa20a362030206f626a0a3c3c2f4c656e6774682037203020522f46
696c746572202f466c6174654465636f64653e3e0a73747265616d0a789c5d90cd4ec3300cc7ef79
0adf188795384ddae638560e48e3c09617d84a988a56a47e48686f4f9cafc114b5b17ffedbb13d02
2f10389d7877031bd9d35ec27966b250f0c3107a5656356053c3e0ad1a2eecc0aa46444656601413
4a7017e030594748afb488991245ce0d94ac4443fc7f3e629d9ef66678075599299991d698299991
ea265332031d01fdd8e9ea0678366e70245234603e595808822a84ffccc056db7eea5edb47f3c5b0
74db4127fc602b41400807d691ecede578255aa2a3dcb3c332d9e310b2a5ceb8edcf765eeeb43bfb
4da42a9368633604d6024924b9fb11bff5535651ba7d6b8352dc35f8a73cfa097893fb4df57d92d9
51c64318312962599d4afa1214ccbd28aee1745dec1c22e8f791a35eef3d7e6b4926aff2b579f4a4
6ec87f31f0cee8fc02f62c8fb3656e6473747265616d0a656e646f626a0a372030206f626a0a3330
350a656e646f626a0a352030206f626a0a3c3c2f547970652f506167652f4d65646961426f78205b
302030203235342037345d0a2f506172656e742033203020520a2f5265736f75726365733c3c2f50
726f635365745b2f504446202f546578745d0a2f457874475374617465203132203020520a2f466f
6e74203133203020520a3e3e0a2f436f6e74656e74732036203020520a3e3e0a656e646f626a0a33
2030206f626a0a3c3c202f54797065202f5061676573202f4b696473205b0a35203020520a5d202f
436f756e7420310a3e3e0a656e646f626a0a312030206f626a0a3c3c2f54797065202f436174616c
6f67202f50616765732033203020520a3e3e0a656e646f626a0a342030206f626a0a3c3c2f547970
652f4578744753746174652f4e616d652f52342f54522f4964656e746974792f4f504d20312f534d
20302e30323e3e0a656e646f626a0a392030206f626a0a3c3c2f547970652f466f6e744465736372
6970746f722f466f6e744e616d652f524a464b46552b54696d65732d526f6d616e2f466f6e744242
6f785b2d313638202d3238312031303331203932345d2f466c6167732033340a2f417363656e7420
3932340a2f436170486569676874203637360a2f44657363656e74202d3238310a2f4974616c6963
416e676c6520300a2f5374656d56203131310a2f4d697373696e675769647468203235300a2f5848
6569676874203436310a2f43686172536574282f73706163652f7a65726f2f6f6e652f74776f2f66
6f75722f666976652f7369782f65696768742f6e696e652f412f432f442f492f4c2f4d2f522f532f
542f612f622f632f652f672f692f6c2f6d2f6e2f722f732f742f79290a2f466f6e7446696c653320
38203020523e3e0a656e646f626a0a382030206f626a0a3c3c2f537562747970652f547970653143
2f46696c7465722f466c6174654465636f64652f4c656e677468203131203020523e3e7374726561
6d0a789c6556695453e7bade31247b3b715a737304ac496aadf6d409ad56a8536570442b838c2a83
040886843109210904c2f83287210408934c822032aa200e60716aab56056d0fdada5b3b1ee939eb
7e9b7efcb83b9c75effd71d7cada2b6befef7bbeef7ddfe77d9e9745d82c20582c16cfebd0bec3fb
8eaff391c488133678c9634265d6d76be9152cfa9d05f44a36de89cfff59fda7236725e151cb5e5a
ff8eedc0325af8367af11734fa16c166b17aee7eeb2a8f4d8e974446258a3e38eee5f7b775ebd6ff
df9bcdcececea2b0e4fff922721327482265a235cc1f85582a8f8d11cb1277885c99d552a9e4b428
529a1c1b95200a0d0f17875bb7f9864ac56744fb2452496cac5c21fac0f56fa22d8e8e9b37308f2d
3b44479362c4f1f2f522892c42229324268b4265e1a2cf62c491a1a298d070b115c02d4692189f2c
daea2891fdefeea39298b0a404d17cb4a2a372679187c84b1c99240d8dffff5f0882107aec4d969d
3ee22a768b8f4cf04a9478fb1c9486c6846ddeb275dbc74ece224782d840ac220289cf08376223b1
9ad847bc4f781307081fe223e2387188d84a6c233e248e102ec451c2955846f0083ef1576239614f
38102ce26d42c45482b06100aeb076b0ce2fe02c885bf033fb20fba6cd2a0ec1a9e2aee62ab97748
093940bea13650f7176a174e2d122c4a5cd4bef8ddc5c54b784b3296642df91115dad2082caa8bf4
1bcbb2ef6696f362e907c885af166b1335eaa8709f6427a00e705d74255d423a8684875555cf8a29
0bee52918f334d5a70a7e68e91bc0be0aed5b864512a92d9dec5bd825c38b6b3116041017df4bb75
ac595f0bff54a1be3cea312ea0efd929b9387c2ef5305e939a12946baf4281163248696aad2cac2a
36092fa1851c64e6f6adab8c2d8d03ad3dc4ab337cf328153292733a54ce47246a45146ee5d8d239
5836435f31b36839edcbc72b34dc8eeaf494ecbccc1c83f043dc8649549259956d820a7ba835970e
1450661ca6259bb36bd28c6ac4c579768519e698d680ea48d0d88326d1431da38d4b52692113d20b
f4c5aa5275911aa844a53221ba23beff8b2b37d1eaeb42b4915e6feaa8286f2ab467ce0733ed7083
75771ab94db3abe955fc92c2f2fc0aa05acb3481429c4f82579ad63f9bd2a02833e95fa4a9846e0a
9d27af0c3554760235dc243d28c462123c74ea00eba2703319589c5a09c3144a267f0abeb9f7a454
7d78bfe0196928084c96a4f9a430271ed33fa2396d2c9864d3ab90233fc89da115508e879f23f28f
1b0fbfe936a545940b4b928cf2dae47ab06f6eb034de74bfbc3dd05f1919260c0896ef879d14feeb
b38d883dd45b7dae5bd0d2646969bf45d9feb9142cb33616d6af8374ed0c7bf663fa017f2e8004a7
54dd4ea6a6a8d342ba146babe021451f631860323d2e61181044e2b8b9029c42177070a08afb6d96
29155ca8b90f4958ad55396532fb522de4ee227523bca1e8b5242a9abbcc70d2767693769076aa47
cebd2c40147b96606a978e141c0537539192aa8474d0146a4a02ab038c27c0199ca4477cdc8f8837
025e001bdbb75df5fafcd08fe2df0171e0f74b13df50c9b57bdd0ec63881bd0778d785f4f80c4b7f
00c4a6d0c1d768217a7f6c5471ba57d071c62cb71ca2acc9fb0ac93a10d9cda2d723277ed09e10d9
61f0829036d958728fa13377824213dc8c7bfab6f88e98ee93f57e10002792c5921361b16ee04c61
c1a36d88fcf9c92d44f40bf0145acfaf983a7f610226a0496eda4acdd35d75817e71416559f6fd0c
cd45ace5bc9a7f22161f5c53757be65b438a2e701105ffeabc7df3dead0bafe057f82166cae7c6fe
af30ab1baf048a57831b55dc6786b274d84bcd74f279d27315c6be97f75224570453c7fbb6012600
2f0adbfec9097f9967ea56a04ea79675086dd14b30a37ffcc67a38cd2ea51df8558565f995409d2d
4b0916e24212020c86c3a90cbf0c66727fa1da0c63144a223b06465a4acab2f415826a6d45a609a8
26734d6ba7a24e122a4b740b14fe486615f82645ea8ea9ece7db6c0cdd398ba22f16b72e8307b2bf
23f7c99696e53c4c47d376fc8bbb49255332656992d12eb63cb6388e89036ddcebeae8d122be1f2d
542527ab33b3a2653a2528415199daa7a478d8cd2f363ac2c1772af8e72753cdfda3829e73351dd0
03b74ff4ef2dc4fc123bdf82f832a886baceae1663595e695e2158724d792570017acde75a3a5bcd
5d30026d598dda0e0a1be61cf89d86e799c340fd67a72ed2734f38e67ce4d936d8586aea1f11f250
317acdbfd5da75e95cb33aa65a501b557912c2296f59d4c9cf42effd22b0a5edf50d29f5f4e63a5d
c332b88d9c1f3055435fa22ff8bcf5d9e81d4e1a373737dd9097970df699a02f482b668a644c4a2a
8a5bb1d3cbdfd5bbe3f48b20e1787497b22601a4f6c167e4fe12a9a94125509c4d6fd48d51295c9e
07763491a5e5450595500655b98d990c40666b4b76ed8ac9bbe30f46123a3feb1662e2aebc5a7316
5aec7bcfb55e1a6b976c6914307d0216fa0f2b9b5ecc209d954d43b36b2d7c71a1b25c761e87a112
bb2f4ced959d2d1dcd967eb80c03ba0b716d146fb24fecd4bc61056f08b7a9b84f32cad3c08d9a73
675a599ffaa9b525db99962cd699e0118502c89b05281d4f70d036ee5c10fd92cf9b6cad30f6a2b7
c7433604284223558293715199eb72295b744e3f4a2fe9608d4db3919169d73588e296e715660a0c
e999e906bdd8272428253bcd9069802cc8c9cf2dcca5aee1ebdceded21b7867b9a463b05ba0a45bc
5a9f04f6119a963b4274f10dc94032da796786f58c8174a543f878930f47431af32b0b4cf96560df
344f5e0d09aefab47d5671d49bc983c519e5d67b23d21f29f8b18989727943626b5b63435b6b62a3
4c684b5fd3d52bbae823f5685ddfb2b69748fb66396f98f69e75e22bb8d98969696ad00323e9c688
aa08e31908816075b42c4a9a1c0a7eb063d01bd91c7b241e0d3b2b2ed3152b2081e2690e049c74d9
e27103d9060812b9bce1761cc569e0e65b2aabcc500135d916438fa637a3172844be7af6c7b73ef7
b0dd43e1aaf1d041b84edde8efb93dd4af8aec129c3b5315577d8c3acb9d3759fab77e16d2cfb051
e92cc19fcb21e1e3b43427abc20e5948e722ad09bea668e3751271a121b9112fa09ab8996837676e
829b8977739ab84d88d568413640595bfedf82cd6091568df95497ba3d87011a61800a53aaac408c
547f5d659a2e62a47a4445bec8aa4c6354653ef1d6ac5b66d9fc126e457e65be11a88e72ed09e15c
1c09c7b53a8f2c26dd6966d2a328b51c6e50f44f6476819f5aacdfa79ef79f71daae69197cbfef7b
f4de37cb79afe9a3f7f96a6d6a9686714a43d5a010f991309ad5a6694aea0eb11c63a46072c3de40
8fc43a6563537d5d43515e715ea930b72ccf08a5544b4743ef708becb8e02889371e5167848829de
eb24a55612ede031183c31d8573f3a2128f6ab55f4c179a8afeceaa1f0a6bff3419a95ae484dd0ca
d3154045c9cf0f088b48b8d5d78d960e321a6c6158b57294f5601a79587f6c0b63caa642a3d5949b
cb528284b8c41aa3c63b8f8931de4cfa16682ae02285ba4828309697969e6d1ca8e9026ab021ca5d
889961c73b2dcdcbcabe4433e995afa981db142a26db073a6b2f0135561beb24c4918cc96764781a
9845723319571053a0ab858bf6288c448bc23fdfede91fe7795c903c2669390ec120d73a79504f18
3ff757317eaeb14aabbe835e7c87757f1a29bf67a30db3bbf85905a19ad88c133a7b590627852cc9
2f8252a07acbd2438573d5a4f445f47364378316a0f7d05ff6fcb4f6a86764a052e06b73f172f7e8
d4c82e6c8bd941879dfd4e359e15cc4f27ac99976c34c874003ee0c8d19295c515454505b5a53545
e540d59769ce08ad2e1f9d919892ae49d7e6845ab3d2662677e6a794c3158afe95b4823ca51b1fb3
d0c44b362d472bf9bae2082f5dfa29b0c7195cb413b9bd7a7df1294cd9ffe393c9f77cfc924e4708
ce483467d46ef55976bdbf75777c05d4f498d7f65d27376edf22c4fbb0272795769847ad476beed2
bbea58e83c33ca48510aff7dda33988bbf98f3e41c46e7f18e49b46386c407eef2b1818b0ce817eb
b4473f7fc642530fd8e820fd9c8ffcb9d550545058daf3ca2ebd54a3d06729984b89b99885f579b9
9007b9f6594539c68e5e83ae4f80c8886b47e0036addd14f7729d5a50d3182338d89e50c8164dad4
78f1e58427d38f5aae8e082f0dd58fc15378a4ba1430123ce8d58817d53363438eb695b6b9c482d7
a8e80736ed35fb291f73f59e2a177f4cec3e86b9801d606bcb4703013dc1d7136e3372f0d6cb9f91
00fd87cb37980c5618c41ec216b40ed920026d6ea67018bec87f39e28adfc60bc28fba7f74fc27b4
e9aab1b5ce2cacaf3e57c6506ffeb8595bc6679fba3f46f2af7c9e2ee7bd420334c9a8f3efd7bafa
bf74f8d6f5f3b598f5c901c74316d9bf360978af30e19c24ddeff0e1b3fd8883964cdeff6352328c
97fe20485ecdffdaaf2912bca943a74e1ddae33ffedddd86fef1cb82e149066bcb78e4a59b0ee343
7d77be1c08dee7253fe5251664e50064e758af80f403b44d2b0b7e44865fd9b792f8c8c674c3f2e5
f03f9f4ea0b700ada090f326b410f3f1e22d6bf00a6cfbe81344dce8afeebb2608c3db315b84d7c7
51e8169ae583323b3d2d5d9e10a18b046a4fd013b478acfaf3fa66614dddd98a36a0be1bda867732
f34ba135eae6d965cd2cf805997eb1caa313df0742d511519ede624c025e0898d589175ef6be107c
35611caec2404d77d7f88d1e669a424b2914ea88dec5cb053971fce921ccc1622c0e166ddb16fc5f
281c450d21f64ba1adb28ef6ad433e75dcf6452f16b71b972c7951bb642941fc37bd8f00ed0a656e
6473747265616d0a656e646f626a0a31312030206f626a0a333531350a656e646f626a0a31322030
206f626a0a3c3c2f52340a34203020523e3e0a656e646f626a0a31332030206f626a0a3c3c2f5231
300a3130203020523e3e0a656e646f626a0a31302030206f626a0a3c3c2f537562747970652f5479
7065312f42617365466f6e742f524a464b46552b54696d65732d526f6d616e2f547970652f466f6e
742f4e616d652f5231302f466f6e7444657363726970746f722039203020522f4669727374436861
722033322f4c61737443686172203235312f5769647468735b0a3235302033333320343038203530
30203530302038333320373738203333332033333320333333203530302035363420323530203333
3320323530203237380a353030203530302035303020353030203530302035303020353030203530
3020353030203530302032373820323738203536342035363420353634203434340a393231203732
32203636372036363720373232203631312035353620373232203732322033333320333839203732
32203631312038383920373232203732320a35353620373232203636372035353620363131203732
32203732322039343420373232203732322036313120333333203237382033333320343639203530
300a3333332034343420353030203434342035303020343434203333332035303020353030203237
382032373820353030203237382037373820353030203530300a3530302035303020333333203338
39203237382035303020353030203732322035303020353030203434342034383020323030203438
3020353431203235300a323530203235302032353020323530203235302032353020323530203235
3020323530203235302032353020323530203235302032353020323530203235300a323530203235
30203235302032353020323530203235302032353020323530203235302032353020323530203235
30203235302032353020323530203235300a32353020333333203530302035303020313637203530
30203530302035303020353030203138302034343420353030203333332033333320353536203535
360a3235302035303020353030203530302032353020323530203435332033353020333333203434
3420343434203530302031303030203130303020323530203434340a323530203333332033333320
33333320333333203333332033333320333333203333332032353020333333203333332032353020
33333320333333203333330a31303030203235302032353020323530203235302032353020323530
2032353020323530203235302032353020323530203235302032353020323530203235300a323530
20383839203235302032373620323530203235302032353020323530203631312037323220383839
20333130203235302032353020323530203235300a32353020363637203235302032353020323530
203237382032353020323530203237382035303020373232203530305d0a3e3e0a656e646f626a0a
322030206f626a0a3c3c2f50726f6475636572284553502047686f737473637269707420372e3037
293e3e656e646f626a0a787265660a302031340a303030303030303030302036353533352066200a
30303030303030363138203030303030206e200a30303030303035373630203030303030206e200a
30303030303030353539203030303030206e200a30303030303030363636203030303030206e200a
30303030303030343039203030303030206e200a30303030303030303135203030303030206e200a
30303030303030333930203030303030206e200a30303030303031303535203030303030206e200a
30303030303030373335203030303030206e200a30303030303034373338203030303030206e200a
30303030303034363535203030303030206e200a30303030303034363736203030303030206e200a
30303030303034373036203030303030206e200a747261696c65720a3c3c202f53697a6520313420
2f526f6f74203120302052202f496e666f2032203020520a3e3e0a7374617274787265660a353831
300a2525454f460a

1031
debian/hexdump-interaction.pdf vendored Normal file

File diff suppressed because it is too large Load Diff

21
debian/rules vendored
View File

@ -77,7 +77,26 @@ build-stamp: config.status
fi
@echo
# make design paper
# XXX
# So, gs-gpl on s390 is broken (#321435) and fails to properly build
# .pdf files from .fig files using fig2dev. Therefore we ship them
# until this bug is fixed.
#
# of course we can always give it a try
#
# the hexdumps were built using something like
# perl -e 'while (<>) { print unpack ("H*", $_); }' interaction.pdf | fold > hexdump-interaction.pdf
if [ "$(DEB_BUILD_GNU_TYPE)" = "s390-linux-gnu" ]; then \
cd doc/design-paper; \
fig2dev -L pdf cell-struct.fig cell-struct.pdf || \
( echo "** Using shipped pdf file because fig2dev failed"; \
perl -e 'while (<>) { chomp; print pack ("H*", $$_); }' ../../debian/hexdump-cell-struct.pdf > cell-struct.pdf ); \
fig2dev -L pdf interaction.fig interaction.pdf || \
( echo "** Using shipped pdf file because fig2dev failed"; \
perl -e 'while (<>) { chomp; print pack ("H*", $$_); }' ../../debian/hexdump-interaction.pdf > interaction.pdf ); \
fi
# XXX ends
if [ "$(BUILD_DOC)" != "no" ]; then \
make -C doc/design-paper tor-design.ps tor-design.pdf || \
( echo -e "*\n*\n*\n*"; \

31
debian/tor.init vendored
View File

@ -6,7 +6,8 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/tor
NAME=tor
DESC="tor daemon"
TORPID=/var/run/tor/tor.pid
TORPIDDIR=/var/run/tor
TORPID=$TORPIDDIR/tor.pid
DEFAULTSFILE=/etc/default/$NAME
WAITFORDAEMON=60
ARGS=""
@ -50,20 +51,26 @@ case "$1" in
if [ "$RUN_DAEMON" != "yes" ]; then
echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
else
echo "Starting $DESC: $NAME..."
ulimit -n $MAX_FILEDESCRIPTORS
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \
$NICE \
--exec $DAEMON -- $ARGS
echo "done."
if test ! -d $TORPIDDIR; then echo "There is no $TORPIDDIR directory." >&2; exit 1
elif test ! -x $TORPIDDIR; then echo "Cannot access $TORPIDDIR directory, are you root?" >&2; exit 1;
else
echo "Starting $DESC: $NAME..."
ulimit -n $MAX_FILEDESCRIPTORS || echo "Warn: Could not set ulimit for number of file descriptors." >&2
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \
$NICE \
--exec $DAEMON -- $ARGS
echo "done."
fi
fi
;;
stop)
echo -n "Stopping $DESC: "
pid=`cat $TORPID 2>/dev/null` || true
if test ! -f $TORPID -o -z "$pid"
if test ! -d $TORPIDDIR; then echo "There is no $TORPIDDIR directory." >&2; exit 1
elif test ! -x $TORPIDDIR; then echo "Cannot access $TORPIDDIR directory, are you root?" >&2; exit 1;
elif test ! -f $TORPID -o -z "$pid"
then
echo "not running (there is no $TORPID)."
elif start-stop-daemon --stop --signal INT --quiet --pidfile $TORPID --exec $DAEMON
@ -80,7 +87,9 @@ case "$1" in
reload|force-reload)
echo -n "Reloading $DESC configuration: "
pid=`cat $TORPID 2>/dev/null` || true
if test ! -f $TORPID -o -z "$pid"
if test ! -d $TORPIDDIR; then echo "There is no $TORPIDDIR directory." >&2; exit 1
elif test ! -x $TORPIDDIR; then echo "Cannot access $TORPIDDIR directory, are you root?" >&2; exit 1;
elif test ! -f $TORPID -o -z "$pid"
then
echo "not running (there is no $TORPID)."
elif start-stop-daemon --stop --signal 1 --quiet --pidfile $TORPID --exec $DAEMON