freebsd-ports/mail/dbmail21/files/dbmail-pop3d.sh.in
Edwin Groothuis f45d770362 New port: mail/dbmail21 -current branch of DBMail
Dbmail is the name of a group of programs that enable the possiblilty
	of storing and retrieving mail messages from a database (currently
	MySQL, PostgreSQL or SQLite).

	What are the advantages?

	    * Scalability.
	      Dbmail is as scalable as the database that is used for the
	      mail storage.
	    * Manageability.
	      Dbmail is based upon a database. Dbmail can be managed by
	      changing settings in the database (f.e. using PHP/Perl/SQL).
	    * Speed.
	      Dbmail uses very efficient, database specific queries for
	      retrieving mail information. This is much faster then parsing
	      a filesystem.
	    * Security.
	      Dbmail has got nothing to do with the filesystem or interaction
	      with other programs in the Unix environment which need special
	      permissions.  Dbmail is as secure as the database it's based
	      upon.
	    * Flexibility.
	      Changes on a Dbmail system (adding of users, changing passwords
	      etc.) are effective immediately.

	WWW: http://www.dbmail.org/

PR:		ports/101356
Submitted by:	Mark Starovoytov <mark_sf@kikg.ifmo.ru>
2006-08-05 22:35:33 +00:00

32 lines
528 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dbmail-pop3d
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dbmail-pop3d:
#
#dbmail_pop3d_enable="YES"
#
# See dbmail-pop3d(8) for flags
#
. %%RC_SUBR%%
name=dbmail_pop3d
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/dbmail-pop3d
pidfile=/var/run/dbmail-pop3d.pid
required_files=%%PREFIX%%/etc/dbmail.conf
# read settings, set default values
load_rc_config "$name"
: ${dbmail_pop3d_enable="NO"}
: ${dbmail_pop3d_flags=""}
run_rc_command "$1"