~ubuntu-branches/ubuntu/raring/likewise-open/raring-proposed

« back to all changes in this revision

Viewing changes to debian/likewise-open.prerm

  • Committer: Luke Yelavich
  • Date: 2011-04-01 02:24:08 UTC
  • mfrom: (24.1.1 likewise-open)
  • Revision ID: luke.yelavich@canonical.com-20110401022408-y2q3n5ecb11fvfu6
Tags: 6.0.0.53010-4ubuntu3
* remove stale pid files during installation and daemon exit. (LP: #737362)
  - updated debian/likewise-open.preinst and debian/likewise-open.prerm
    to delete stale pid files
  - added debian/patches/remove-pid.diff to make daemons remove their
    pid files on exit

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        fi
121
121
        exec_logfile "pkill -TERM -x $daemon"
122
122
        exec_logfile "pkill -KILL -x $daemon"
 
123
        exec_logfile "rm -f /var/run/$daemon.pid"
123
124
    done
124
125
 
125
126
    logfile "Snapshot of processes after stopping daemons"
150
151
        fi
151
152
        exec_logfile "pkill -TERM -x $daemon"
152
153
        exec_logfile "pkill -KILL -x $daemon"
 
154
        exec_logfile "rm -f /var/run/$daemon.pid"
153
155
    done
154
156
    return 0
155
157
    ;;