dataflake.org

Home Documentation Software Old Stuff Bug Reporting

small modifications in start_maildrop and stop_maildrop script (Resolved)

Request MaildropHost -- bug report -- by jan-wijbrand kolman
Posted on Nov 23, 2004 3:09 am
Subscribe

Enter your email address to receive mail on every change to this issue.

Entries (Latest first)


  Resolve by Jens Vagelpohl on Nov 23, 2004 3:17 am
  Thanks J.W. - I put it in CVS but won't make a new release for it yet ;)

jens
 

  Initial Request by jan-wijbrand kolman on Nov 23, 2004 3:09 am
  (see also http://www.dataflake.org/tracker/issue_00398)

Now that the paths to the maildrop home directory is not hardoced anymore, I think the start and stop scripts for the maildrop delivery can be improved a little too.

My proposal:


diff -ru MaildropHost-1.9/maildrop/start_maildrop MaildropHost-patched/maildrop/start_maildrop
--- MaildropHost-1.9/maildrop/start_maildrop 2004-11-15 17:16:45.000000000 +0100
+++ MaildropHost-patched/maildrop/start_maildrop 2004-11-22 16:50:35.000000000 +0100
@@ -6,7 +6,7 @@
reldir=`dirname $0`

# Source the main configuration file
-. ../config.py
+. $reldir/../config.py

# Where is the python executable?
PYTHON="/usr/bin/python"
diff -ru MaildropHost-1.9/maildrop/stop_maildrop MaildropHost-patched/maildrop/stop_maildrop
--- MaildropHost-1.9/maildrop/stop_maildrop 2002-04-11 16:42:04.000000000 +0200
+++ MaildropHost-patched/maildrop/stop_maildrop 2004-11-22 16:50:26.000000000 +0100
@@ -6,7 +6,9 @@

# Set the maildrop main directory
reldir=`dirname $0`
-MAILDROP_HOME=$reldir
+
+# Source the main configuration file
+. $reldir/../config.py

# Where is the pid file?
MAILDROP_PID=$MAILDROP_HOME/var/maildrop.pid