packages: arcavir/arcavir-update.patch - update script is run as user, so n...

baggins baggins at pld-linux.org
Fri Aug 20 10:07:53 CEST 2010


Author: baggins                      Date: Fri Aug 20 08:07:53 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update script is run as user, so no /sbin/service for it

---- Files affected:
packages/arcavir:
   arcavir-update.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/arcavir/arcavir-update.patch
diff -u packages/arcavir/arcavir-update.patch:1.2 packages/arcavir/arcavir-update.patch:1.3
--- packages/arcavir/arcavir-update.patch:1.2	Wed Aug 18 11:07:28 2010
+++ packages/arcavir/arcavir-update.patch	Fri Aug 20 10:07:48 2010
@@ -7,7 +7,7 @@
  #
  # ArcaVir 2010 Server update script.
  # Copyright (C) 2009 ArcaBit sp. z o.o.
-@@ -10,18 +10,17 @@
+@@ -10,18 +10,18 @@
  
  . /usr/share/arcavir/functions || { echo 'Cannot load /usr/share/arcavir/functions!'; exit 1; }
  
@@ -29,7 +29,8 @@
 -#fi
 +		${bt} "${dst}"var/lib/arcavir/bases/ "${dst}"var/lib/arcavir/bases/abasetr_bt.dat
 +	chown -R arcabit:arcabit "${dst}"/var/lib/arcavir/bases/
-+        /sbin/service arcad reload
++	read arcadpid 2>/dev/null </var/run/arcad.pid
++	[ -n "$arcadpid" ] && kill -HUP $arcadpid
 +        ${rm} -f ${lockfile}
 +else
 +        die 'Cannot open lockfile'
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/arcavir/arcavir-update.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list