Antagonism.org Scripts
Here is the collection of all the scripts posted on my website. With each
file should be a MD5, SHA-1, and RIPEMD-160 values and a PGP signature to
verify file integrity. You may download my GPG key or send
an email to
gpgpublickey-marlowe@antagonism.org.
Admin scripts
Checksig verifies the signature of a package.
| File: |
checksig |
| Size: |
1,639 bytes |
| MD5: |
0002b7d0a7e6f7bd199d60f132006f24 |
| SHA-1: |
d389ffe17ad858d644c6529027bd449471fbc952 |
| RIPEMD-160: |
8ce3a969b552cc72b5b0b344452899331337b7c1 |
| PGP Signature: |
checksig.asc |
|
Backup Scripts
trac-backup
Trac-backup creates a hot copy of all trac projects, compresses them and
then compresses the root directory. It stores the latest 10 backups.
| File: |
trac-backup-ng |
| Size: |
2,508 bytes |
| MD5: |
58bacca296566a3d40b07fe266658d1a |
| SHA-1: |
e3087711f34fd59b9b7f64c612bb07b640995ac0 |
| RIPEMD-160: |
79551b6a65d519f396ddde4304c5efdfffe50f24 |
| PGP Signature: |
trac-backup-ng.asc |
|
backup-svn and svn-backup-check
These scripts are a master/slave pair which create a hot copy of the
subversion repository, verify it against a test repository and store the latest
10 backups.
| File: |
backup-svn |
| Size: |
2,084 bytes |
| MD5: |
2ed1a81b208106d6493b0f4d10d1d0a7 |
| SHA-1: |
903c4eaf7841845013931d1ba08ec63490ec796c |
| RIPEMD-160: |
f54664c565aa60d279134dfe521357f180b883a1 |
| PGP Signature: |
backup-svn.asc |
|
| File: |
svn-backup-check |
| Size: |
1,696 bytes |
| MD5: |
a77d664d52f9856033538396e9d7a3e3 |
| SHA-1: |
0c225baec2bbc97e082ec0b1952983cd006dfefe |
| RIPEMD-160: |
d2fe10f82028dd90fd8a295027502d469d1931df |
| PGP Signature: |
svn-backup-check.asc |
|
ClamAV scripts
Freshclam-outdate downloads the latest ClamAV tarball and associated
signature when ClamAV is outdated. It emails the administrator the success
of the download.
| File: |
freshclam-outdate |
| Size: |
3,986 bytes |
| MD5: |
8ed3f11371325b15e7eddebdce4ef065 |
| SHA-1: |
c7cdc7c946f230670afa87dc6441fccdfa9c69ff |
| RIPEMD-160: |
17bb77b188c71a044079b3d7c2a3e6026377c4f7 |
| PGP Signature: |
freshclam-outdate.asc |
|
Service Control Scripts
I run a majority of my services under daemontools. Below is a collection
of all the run scripts with a short description.
atd
Atd is a background daemon which reads atjobs and executes the
commands within. It is used to ensure the running of scheduled
tasks.
| File: |
atd-run |
| Size: |
27 bytes |
| MD5: |
cc8e5d8804a653d5a4c95a72da29b373 |
| SHA-1: |
1c395d4bc102662dc9387655c8ff4da3ab01893a |
| RIPEMD-160: |
ced3c53f686fcdb5672ed602e5dd75ad56c50627 |
| PGP Signature: |
atd-run.asc |
clamav
ClamAV is an antivirus toolkit
for use with Unix-like operating systems. It is distributed under the
GNU General Public License (GPL). It is commonly
used on email servers to scan for virii, scan files shared by Samba and
files downloaded through an Apache proxy, just to name a few.
| File: |
clamav-run |
| Size: |
31 bytes |
| MD5: |
16b25b01ae482b86f769b4fe9670eb9e |
| SHA-1: |
0d86702907477190b0efece6472e762115618f74 |
| RIPEMD-160: |
f3858368769540c97ce54a000b74bce8fc2eeb6a |
| PGP Signature: |
clamav-run.asc |
crond
Crond is a background daemon which reads crontab files and executes
the commands within. It is used to ensure the running of scheduled
tasks, such as nightly backups.
| File: |
crond-run |
| Size: |
34 bytes |
| MD5: |
29ad3c5354a67991db7d17cd79756e6a |
| SHA-1: |
3e604a5e1ab283c851400d02eb7f37f5ac2dac8a |
| RIPEMD-160: |
2541f38ca72b0c13b77d3bab52b544eb00fbc56b |
| PGP Signature: |
crond-run.asc |
|
fetchmail
Fetchmail is a remote mail
retrieval and forwarding utility. It retrieves email over POP or IMAP
and forwards it via SMTP to the local MTA.
| File: |
fetchmail-run |
| Size: |
136 bytes |
| MD5: |
41d4fdb240c918503b4ab46af6523a10 |
| SHA-1: |
d29504a4e2d2b862abcf44a4a1dbc18cfe4c04a7 |
| RIPEMD-160: |
7e79fa0cb80790eedd2d49c6abd34f14c50bd7d8 |
| PGP Signature: |
fetchmail-run.asc |
|
freshclam
Freshclam is used to update the ClamAV database. It is part of the
ClamAV package. Freshclam may be called manually from the command line
or it may be run as a daemon.
| File: |
freshclam-run |
| Size: |
47 bytes |
| MD5: |
e9e0486f0c70feb3b9c0dc8995933460 |
| SHA-1: |
949f9315b558f7a54155b54230aa1ed9636845d5 |
| RIPEMD-160: |
015266876158870a28aedd5614af39b701c34bcf |
| PGP Signature: |
freshclam-run.asc |
maildrop-logger
maildrop-logger creates the named pipe called by pipe-watcher to log
maildrop.
| File: |
maildrop-logger-run |
| Size: |
1,539 bytes |
| MD5: |
4fc3a9a20e5bb8fe9dafc8a20f5f5475 |
| SHA-1: |
7167ccdb5240ab81d0243f8ea96859d77a5df99a |
| RIPEMD-160: |
84047abf69961342fed6e1ef2324b56bcbec06fb |
| PGP Signature: |
maildrop-logger-run.asc |
|
Nagios
Nagios is a computer system and
network monitoring application. Originally, known as NetSaint, Nagios watches hosts and
services specified, notifying the appropriate personnel regarding their
state.
| File: |
nagios-run |
| Size: |
87 bytes |
| MD5: |
fc555769a05358a1c64a21d72c104e00 |
| SHA-1: |
a06d2a188e7ef1ce003b0b188102bd530834f55c |
| RIPEMD-160: |
35ace06f9c298eeef77bae1d7dc95fdbaba98cd1 |
| PGP Signature: |
nagios-run.asc |
|
OpenSSH
OpenSSH is a set of computer
programs which provide encrypted communications using the SSH protocol.
OpenSSH provides a secure alternative for ftp (with sftp), rlogin and
telnet (with ssh) and rcp (with scp). OpenBSD currently develops OpenSSH
and is need of funding. If you find this document and/or OpenSSH
helpful, I encourage you to make a donation.
| File: |
sshd-run |
| Size: |
195 bytes |
| MD5: |
47155771375af092dbc04128a3ca7be7 |
| SHA-1: |
2cf59407998f2c00945029c5c6a3669f4ba4b3bc |
| RIPEMD-160: |
bb8622cbdc300af697bd25eab58507bce4440727 |
| PGP Signature: |
sshd-run.asc |
PostgreSQL
PostgreSQL is an object-relational
database. It provides an open source alternative to MS-SQL and Oracle.
| File: |
postgresql-run |
| Size: |
140 bytes |
| MD5: |
e24d5d11230b6889ca9acda908248279 |
| SHA-1: |
d8c0388e1b5c4ff483ef4ae2ba96466de518271d |
| RIPEMD-160: |
bd74fdbc2df78d4db2888d360abc154672c3e2f5 |
| PGP Signature: |
postgresql-run.asc |
rsync
Rsync provides a
means of fast low bandwidth incremental file transfer utility. Its
connections can be sent in the clear or encrypted via OpenSSH. It
is commonly used to do nightly backups and mirror creations.
| File: |
rsync-run |
| Size: |
177 bytes |
| MD5: |
fa1fb23b67209904c68db13c1f623483 |
| SHA-1: |
a0208849b0c6a7d5e54fbd403b0d850a3dc1837c |
| RIPEMD-160: |
e5d0bc526b6fa3ebed297e0f5a2363be34fedbfc |
| PGP Signature: |
rsync-run.asc |
SMARTd
Smartd is a demon that monitors the Self-Monitoring, Analysis and
Reporting Technology (SMART) system built into many hard drives. It's
purpose is to provide monitoring of the hard drive with the intent of
predicting drive failures. Smartd can be configured to notify
appropriate personnel via email.
| File: |
smartd-run |
| Size: |
35 bytes |
| MD5: |
1f773671c684caf97e84a19b55554add |
| SHA-1: |
a1c72a122f89bba809ce93ed8907a5871055873b |
| RIPEMD-160: |
ea3f5091f66349c3ec51157af27300a40a69a6c4 |
| PGP Signature: |
smartd-run.asc |
SpamAsssassin
SpamAssassin provides spam
filtering through the use of content matching rules and network based
tests. The network based tests can include DNSBL checks and checksum
tests, such as Razor.
| File: |
spamd-run |
| Size: |
97 bytes |
| MD5: |
6479796f6dac18d55e9c502693d8c8fe |
| SHA-1: |
017472a31acaa3148a45590be2ba36dba1fd1526 |
| RIPEMD-160: |
91ddc182d49d57180b1d7f62922939fb97f9da78 |
| PGP Signature: |
spamd-run.asc |
Log run script
This is the generic log script I use for services running from daemontools.
| File: |
log-run |
| Size: |
47 bytes |
| MD5: |
1cc7ef3d56be3ec766a9b382d19d1604 |
| SHA-1: |
d04a2286a41bddd77577443253ac67654f0b7425 |
| RIPEMD-160: |
4df90694ac5cb454b6e360c69278e244c6cdf924 |
| PGP Signature: |
log-run.asc |
|
RunWhen Scripts
dogreylist-clean
Runwhen calls the following script to clean out any IP addresses in
/var/qmail/jgreylist which haven't been seen in 30 days.
| File: |
dojgreylist-clean |
| Size: |
79 bytes |
| MD5: |
dd4860d5554e701b84b2f6744453ebb0 |
| SHA-1: |
e4a4f3d2f26e1fac6efa62b28def068fa04c2879 |
| RIPEMD-160: |
e9c99f88423ba602b511b22c229ec7bd6bb9f71e |
| PGP Signature: |
dojgreylist-clean.asc |
|
jgreylist-clean
jgreylist-clean sets the parameters on when dojgreylist-clean is called.
| File: |
jgreylist-clean-run |
| Size: |
376 bytes |
| MD5: |
56dacc74d550f56eb8512b88b355f60f |
| SHA-1: |
e43b084c58a6eb6a7130381cb3581198b34527ff |
| RIPEMD-160: |
cf4daf0983c9e8d0780ea20253d8a5a0a865bb12 |
| PGP Signature: |
jgreylist-clean-run.asc |
|
Mail Scripts
jgreylist-var
jgreylist-var converts the appropriate variables in the Perl version of
jgreylist to the shell variables required by the C version.
| File: |
jgreylist-var |
| Size: |
3,179 bytes |
| MD5: |
f0b415fbc09b47b3450c587e606b7651 |
| SHA-1: |
c3b8890f8e8498ee154e39f0d8ccccf254b94d7f |
| RIPEMD-160: |
ab57dcce974fba290a8e393649251fa438fac703 |
| PGP Signature: |
jgreylist-var.asc |
|
Logging Maildrop
log-maildrop simply prints the output of maildrop to STDOUT where
multilog records it.
pipe-watcher watches a named pipe and runs the first program
whenever data appears on the pipe.
| File: |
log-maildrop |
| Size: |
1,049 bytes |
| MD5: |
1f3fcd8f6c2be6e1296cfd90293e23a0 |
| SHA-1: |
9632f6b5e74f4546dc2130c61c09406ebdf88cfb |
| RIPEMD-160: |
567957cca5a61b227c8cb6ac31cbdbf7419660f5 |
| PGP Signature: |
log-maildrop.asc |
|
| File: |
pipe-watcher |
| Size: |
3,011 bytes |
| MD5: |
670aac411b9368855db6dc1b271044ad |
| SHA-1: |
2a03d1a2df0f779182a39b7c607572654e00139c |
| RIPEMD-160: |
d3abdb3654d14978fcecf49f4efd849216d93c4d |
| PGP Signature: |
pipe-watcher.asc |
|
Write-pinger-maildir
write-pinger-maildir prints the output of STDIN to a directory where
echolot can read it.
| File: |
write-pinger-maildir |
| Size: |
185 bytes |
| MD5: |
9c106ea250573e5b8389fee8dcc9125b |
| SHA-1: |
83da225e45b1a4c6581128498df9e9f426b2da34 |
| RIPEMD-160: |
beda250a5c15e3c126927e1edc39f0bde20563bc |
| PGP Signature: |
write-pinger-maildir.asc |
|