Commits

Michele Bini  committed 9205c78 Merge with conflicts

Merge branch 'debian' into dev

Conflicts:
debian/changelog

  • Participants
  • Parent commits fd4d34d, 3e7efa1

Comments (0)

Files changed (3)

File debian/changelog

+timekoin (1.9-deb42-dev10) unstable; urgency=low
+
+   * Correctly register and unregister init.d script.
+   * Remove pidfile after purging the package.
+
+ -- Michele Bini <michele.bini@gmail.com>  Fri, 21 Sep 2012 14:25:34 +0200
+
 timekoin (1.9-deb41-dev9) unstable; urgency=low
 
   * Add init.d script.

File debian/postinst

 chown -R www-data:www-data /var/lib/timekoin
 chown -R www-data:www-data /var/log/timekoin
 
+update-rc.d timekoin defaults
+
 #DEBHELPER#

File debian/postrm

     dbc_go timekoin $@
 fi
 
+# Stop timekoin if it is running
+if service timekoin status >/dev/null 2>/dev/null; then
+    service timekoin stop || true
+fi
 
 if [ "$1" = "purge" ]; then
 	rm -f /etc/timekoin/dbconfig.php
 		ucf --purge /etc/timekoin/dbconfig.php
 		ucfr --purge timekoin /etc/timekoin/dbconfig.php
 	fi
+	update-rc.d timekoin remove
+	rm -f /var/run/timekoin.pid
 fi
 
 #DEBHELPER#