Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12243 closed defect (invalid)

Nullmailer needs startup-Script

Reported by: s.lemke@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: 10.03.1
Keywords: nullmailer Cc:

Description

Hello,

Nullmailer needs a startup-Script.

This is the one I am using:
#!/bin/sh /etc/rc.common
START=50

BIN=nullmailer-send
DEFAULT=/etc/default/$BIN
TMP_D=/var/nullmailer/tmp
QUEUE_D=/var/nullmailer/queue
TRIGGER_D=/var/nullmailer/trigger

start() {

[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $TMP_D
mkdir -p $QUEUE_D
if [ ! -p $TRIGGER_D ]; then

rm -rf $TRIGGER_D
mkfifo $TRIGGER_D

fi

$BIN $OPTIONS &

}

stop() {

ps -ef | grep -v grep | grep $BIN > /dev/null
if [ $? -eq 0 ]; then

killall $BIN

fi

}

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by jogo

  • Resolution set to invalid
  • Status changed from new to closed

Please submit this as a patch to the mailing list according to SubmittingPatches. I'll close this ticket to keep trac mostly for actual bugs.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.