Merge lp:~rodrigo-moya/ubuntu/oneiric/accountsservice/add_postinst into lp:ubuntu/oneiric/accountsservice

Proposed by Rodrigo Moya
Status: Merged
Merge reported by: Sebastien Bacher
Merged at revision: not available
Proposed branch: lp:~rodrigo-moya/ubuntu/oneiric/accountsservice/add_postinst
Merge into: lp:ubuntu/oneiric/accountsservice
Diff against target: 62 lines (+45/-0)
3 files modified
debian/accountsservice.postinst (+21/-0)
debian/accountsservice.prerm (+16/-0)
debian/changelog (+8/-0)
To merge this branch: bzr merge lp:~rodrigo-moya/ubuntu/oneiric/accountsservice/add_postinst
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+64664@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

This patch has been sent to debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630577 , so ignore the merge request, it will be synced to Ubuntu as soon as it's in Debian

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debian/accountsservice.postinst'
--- debian/accountsservice.postinst 1970-01-01 00:00:00 +0000
+++ debian/accountsservice.postinst 2011-06-15 11:03:46 +0000
@@ -0,0 +1,21 @@
1#!/bin/sh
2
3set -e
4
5get_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
14if [ "$1" = "configure" ]; then
15 # stop accounts-daemon
16 pid=$(get_pid org.freedesktop.Accounts)
17 kill $pid 2>/dev/null || true
18
19 # restart daemon if it was running before
20 [ -z "$pid" ] || /usr/lib/accountsservice/accounts-daemon & >/dev/null || true # will trigger through D-Bus activation
21fi
022
=== added file 'debian/accountsservice.prerm'
--- debian/accountsservice.prerm 1970-01-01 00:00:00 +0000
+++ debian/accountsservice.prerm 2011-06-15 11:03:46 +0000
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5get_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
14if [ "$1" = "remove" ]; then
15 kill $(get_pid org.freedesktop.Accounts) 2>/dev/null || true
16fi
017
=== modified file 'debian/changelog'
--- debian/changelog 2011-06-05 12:40:37 +0000
+++ debian/changelog 2011-06-15 11:03:46 +0000
@@ -1,3 +1,11 @@
1accountsservice (0.6.12-2ubuntu1) oneiric; urgency=low
2
3 * debian/accountsservice.postinst:
4 * debian/accountsservice.prerm:
5 - Add scripts to shut down daemon on package upgrades/removals
6
7 -- Rodrigo Moya <rodrigo.moya@canonical.com> Wed, 15 Jun 2011 12:43:36 +0200
8
1accountsservice (0.6.12-2) unstable; urgency=low9accountsservice (0.6.12-2) unstable; urgency=low
210
3 * Disable 0005-gdm_config_file_path.patch in debian/patches/ubuntu.series as11 * Disable 0005-gdm_config_file_path.patch in debian/patches/ubuntu.series as

Subscribers

People subscribed via source and target branches

to all changes: