Package: inoticoming Version: 0.2.0-1~bpo40+1 Severity: wishlist Tags: patch
Hi, I have written (well, modified skeleton...) a simple initscript to start/stop inoticoming automatically. The script is meant to be used with reprepro, but could easily be adapted for other uses. Most options are set in a separate default file. This might be useful to others as well, so maybe you could include it under /usr/share/doc/inoticoming/examples. Files attached. Cheers, Til
inoticoming.init
Description: application/shellscript
# /etc/default/inoticoming # # for an explanation of options and actions, see inoticoming(1) # user to run inoticoming as USER=incoming # log to some file instead of syslog # required if you want to use --stdout-to-log or --stderr-to-log in actions LOGFILE="/var/log/incoming.log" # first search the directory for files already existing # 0 for false, 1 for true INITIALSEARCH=0 # directory to monitor DIR=/var/spool/incoming # actions BASEDIR=/var/cache/reprepro/local RULENAME=incoming ACTIONS="--suffix .changes --stderr-to-log reprepro -s -b $BASEDIR --waitforlock 1000 processincoming $RULENAME {} ;"