From f8ba70a8a1a3d9bb92ff87c83be5b050ba6d9822 Mon Sep 17 00:00:00 2001 From: Peter Wagner Date: Mon, 16 Jun 2014 11:49:56 +0200 Subject: dovecot: import from packages Signed-off-by: Peter Wagner --- mail/dovecot/files/dovecot.init | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mail/dovecot/files/dovecot.init (limited to 'mail/dovecot/files') diff --git a/mail/dovecot/files/dovecot.init b/mail/dovecot/files/dovecot.init new file mode 100644 index 000000000..7739cd15a --- /dev/null +++ b/mail/dovecot/files/dovecot.init @@ -0,0 +1,18 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2013 OpenWrt.org + +START=75 +STOP=75 + +USE_PROCD=1 + +start_service() { + user_exists dovecot 59 || user_add dovecot 59 + group_exists dovecot 59 || group_add dovecot 59 + mkdir -p -m 0755 /var/lib/dovecot + mkdir -p -m 0755 /var/run/dovecot + chmod 0750 /var/lib/dovecot + procd_open_instance + procd_set_param command /usr/sbin/dovecot -F + procd_close_instance +} -- cgit v1.2.3