mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Add sample makefile and crontab
svn:r12232
This commit is contained in:
parent
ad37ad7508
commit
5e6fc79a88
20
contrib/auto-naming/Sample-Makefile
Normal file
20
contrib/auto-naming/Sample-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
all: ../approved-routers
|
||||
|
||||
update:
|
||||
wget -q -O - http://tor.noreply.org/tor/status-vote/current/consensus | \
|
||||
./process-consensus
|
||||
|
||||
.PHONY: approved-routers-auto
|
||||
approved-routers-auto:
|
||||
./build-approved-routers > "$@"
|
||||
|
||||
.INTERMEDIATE: approved-routers
|
||||
approved-routers: approved-routers-auto /etc/tor/approved-routers
|
||||
cat $^ > "$@"
|
||||
|
||||
../approved-routers: approved-routers
|
||||
if ! diff -q "$<" "$@"; then \
|
||||
mv "$<" "$@" &&\
|
||||
(! [ -e /var/run/tor/tor.pid ] || kill -HUP `cat /var/run/tor/tor.pid`) ; \
|
||||
fi
|
3
contrib/auto-naming/Sample-crontab
Normal file
3
contrib/auto-naming/Sample-crontab
Normal file
@ -0,0 +1,3 @@
|
||||
MAILTO=admin
|
||||
# cronjob for tor naming
|
||||
23 * * * * make -s -C auto-naming update && make -s -C auto-naming
|
Loading…
Reference in New Issue
Block a user