fix package upgrade
This commit is contained in:
parent
f54be892ca
commit
60e412165e
9
debian/changelog
vendored
9
debian/changelog
vendored
|
@ -1,3 +1,12 @@
|
|||
ps-watcher (1.06-7~unreleased.1) unstable; urgency=low
|
||||
|
||||
* update copyright
|
||||
* use native debhelper postinst script
|
||||
* fix debhelper prerm script
|
||||
* fix stop) in init script
|
||||
|
||||
-- Jan Wagner <waja@cyconet.org> Thu, 8 Mar 2007 11:26:57 +0100
|
||||
|
||||
ps-watcher (1.06-6) unstable; urgency=medium
|
||||
|
||||
* fix prerm and postinst to prevent trouble when updating
|
||||
|
|
2
debian/copyright
vendored
2
debian/copyright
vendored
|
@ -26,5 +26,5 @@ License:
|
|||
On Debian systems, the complete text of the GNU General Public License
|
||||
can be found in /usr/share/common-licenses/GPL file.
|
||||
|
||||
The Debian packaging is (C) 2006, Jan Wagner <waja@cyconet.org> and
|
||||
The Debian packaging is (C) 2006-2007 Jan Wagner <waja@cyconet.org> and
|
||||
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
|
||||
|
|
5
debian/init.d
vendored
5
debian/init.d
vendored
|
@ -65,8 +65,9 @@ case "$1" in
|
|||
;;
|
||||
stop)
|
||||
echo -n "Stopping $DESC: "
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
||||
--exec $DAEMON
|
||||
#start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
||||
# --exec $DAEMON
|
||||
killall -9 $NAME
|
||||
echo "$NAME."
|
||||
;;
|
||||
restart|force-reload)
|
||||
|
|
17
debian/postinst
vendored
17
debian/postinst
vendored
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
if [ -f "/etc/default/pswatcher" ]
|
||||
then
|
||||
. /etc/default/ps-watcher
|
||||
fi
|
||||
|
||||
if [ -x "/etc/init.d/ps-watcher" ]; then
|
||||
update-rc.d ps-watcher defaults 40 >/dev/null
|
||||
if [ "$startup" = "1" ] && [ -f "/etc/default/pswatcher" ]; then
|
||||
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
||||
invoke-rc.d ps-watcher start || exit $?
|
||||
else
|
||||
/etc/init.d/ps-watcher start || exit $?
|
||||
fi
|
||||
fi
|
||||
fi
|
17
debian/prerm
vendored
17
debian/prerm
vendored
|
@ -1,14 +1,9 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
if [ -f "/etc/default/pswatcher" ]
|
||||
then
|
||||
. /etc/default/ps-watcher
|
||||
fi
|
||||
|
||||
if [ -x "/etc/init.d/ps-watcher" ] && [ "$startup" = "1" ] && [ -f "/etc/default/pswatcher" ]; then
|
||||
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
||||
invoke-rc.d ps-watcher stop || exit $?
|
||||
else
|
||||
/etc/init.d/ps-watcher stop || exit $?
|
||||
fi
|
||||
if [ -x "/etc/init.d/ps-watcher" ]; then
|
||||
# if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
||||
# invoke-rc.d ps-watcher stop || true
|
||||
# else
|
||||
/etc/init.d/ps-watcher stop && true
|
||||
# fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue