Skip to content

Commit

Permalink
postinst: If we are unable to stop the daemon, don't die.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalfield committed Oct 19, 2011
1 parent 18f5e1b commit 56cfb11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
EOF
echo "done."
fi
su user -c "run-standalone.sh /usr/bin/python /usr/lib/python2.5/site-packages/khweeteur/daemon.py stop"
# Don't die gratuitously: the daemon may not be running.
su user -c "run-standalone.sh /usr/bin/python /usr/lib/python2.5/site-packages/khweeteur/daemon.py stop" || true
su user -c "run-standalone.sh /usr/bin/python /usr/lib/python2.5/site-packages/khweeteur/daemon.py startfromprefs"
""",
'prere':"""#!/bin/sh
Expand Down

0 comments on commit 56cfb11

Please sign in to comment.