Changeset 2315

Show
Ignore:
Timestamp:
12/14/11 10:30:30 (18 months ago)
Author:
peter
Message:

Improve package robustness in update situations (debian). Patch by Marc Haber.

Location:
trunk/pdns/debian-pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/debian-pdns/pdns.postinst

    r217 r2315  
    1212update_pdns() { 
    1313        if [ -n "$2" ] ; then 
    14                 /etc/init.d/pdns start 
     14                invoke-rc.d pdns start 
    1515        else 
    16                 /etc/init.d/pdns restart 
     16                invoke-rc.d pdns restart 
    1717        fi 
    1818} 
  • trunk/pdns/debian-pdns/pdns.prerm

    r52 r2315  
    44 
    55if [ "$1" = "remove" ] ; then 
    6         /etc/init.d/pdns stop 
     6        if command -v invoke-rc.d >/dev/null 2>&1; then 
     7                invoke-rc.d pdns stop 
     8        else 
     9                /etc/init.d/pdns stop 
     10        fi 
    711fi