File: mailscanner.cron.hourly

package info (click to toggle)
mailscanner 4.79.11-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,820 kB
  • ctags: 1,309
  • sloc: perl: 25,655; sh: 2,666; xml: 624; makefile: 242
file content (21 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -e
#
# Regular cron jobs for the mailscanner package
#
# Calls the init-script to start MailScanner if
# it wasn't stopped by hand (see $stopped_lockfile)

run_mailscanner=0;
stopped_lockfile=/var/lock/subsys/MailScanner.off;

if [ -f /etc/default/mailscanner ];
then
	. /etc/default/mailscanner;
fi;

[ $run_mailscanner = 0 ] && exit 0;
[ -f $stopped_lockfile ] && exit 0;

invoke-rc.d mailscanner start >/dev/null 2>&1;

exit 0;