Changeset 38206


Ignore:
Timestamp:
2013-09-26T13:21:41+02:00 (4 years ago)
Author:
tripolar
Message:

[packages] dovecot: switch to new procd init script style

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/mail/dovecot/files/dovecot.init

    r37142 r38206  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006-2011 OpenWrt.org 
     2# Copyright (C) 2006-2013 OpenWrt.org 
    33 
    44START=75 
    55STOP=75 
    66 
    7 SERVICE_PID_FILE=/var/run/dovecot/master.pid 
     7USE_PROCD=1 
    88 
    9 start() { 
     9start_service() { 
    1010        user_exists dovecot 59 || user_add dovecot 59 
    1111        group_exists dovecot 59 || group_add dovecot 59 
     
    1313        mkdir -p -m 0755 /var/run/dovecot 
    1414        chmod 0750 /var/lib/dovecot 
    15         service_start /usr/sbin/dovecot 
     15        procd_open_instance 
     16        procd_set_param command /usr/sbin/dovecot -F 
     17        procd_close_instance 
    1618} 
    17  
    18 stop() { 
    19         service_stop /usr/sbin/dovecot 
    20 } 
    21  
    22 reload() { 
    23         service_reload /usr/sbin/dovecot 
    24 } 
Note: See TracChangeset for help on using the changeset viewer.