~ubuntu-branches/ubuntu/saucy/libusermetrics/saucy

« back to all changes in this revision

Viewing changes to debian/usermetricsservice.prerm

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Pete Woods, Ubuntu daily release
  • Date: 2013-07-03 14:16:44 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130703141644-3apl14qyyga4ytxv
Tags: 1.0.2+13.10.20130703.1-0ubuntu1
[ Pete Woods ]
* Add support for providing and storing text domain for format strings
* Support string for empty data
* Update doxyfile format
* Make prerm script more heavy handed
* Only try and register the service inside main
* Log daemon output to syslog

[ Ubuntu daily release ]
* Automatic snapshot from revision 88

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
get_pid() {
6
 
    [ -n "$1" ] || return 0
7
 
    [ -S /var/run/dbus/system_bus_socket ] || return 0
8
 
 
9
 
    dbus-send --system --dest=org.freedesktop.DBus --print-reply \
10
 
              /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
11
 
              string:$1 2>/dev/null | awk '/uint32/ {print $2}'
12
 
}
13
 
 
14
 
if [ "$1" = "remove" ]; then
15
 
    kill $(get_pid com.canonical.UserMetrics) 2>/dev/null || true
16
 
fi
17
 
 
18
 
if [ "$1" = "upgrade" ]; then
19
 
    kill $(get_pid com.canonical.UserMetrics) 2>/dev/null || true
20
 
fi
 
5
pkill -U usermetrics 2>/dev/null || true
21
6
 
22
7
#DEBHELPER#
 
 
b'\\ No newline at end of file'