Azitech

Azimout's Linux weblog

Upstart script for Davmail

leave a comment »

Below is a very simple Upstart script for Davmail. To be installed under /etc/init. Borrowed and slightly adapted from http://sourceforge.net/tracker/?func=detail&aid=3004256&group_id=184600&atid=909907

# davmail -DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway

description "DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway"

start on started network-manager
stop on stopped network-manager

env DAVEXEC=/usr/bin/davmail
env DAVCONF=/etc/davmail.properties

expect fork
respawn

exec /usr/bin/nohup $DAVEXEC $DAVCONF
Advertisements

Written by azimout

01/01/2013 at 21:41

Posted in Tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: