diff --git a/devel/upload.in b/devel/upload.in
index c5831340007454c9415a02885ec14f80fed22012..219362ee8c31fae282ef2caded76e6fe4b8bff9e 100644
--- a/devel/upload.in
+++ b/devel/upload.in
@@ -132,7 +132,7 @@ wait
 if test -z "${NO_RESTART}"; then
   for host; do
     echo Restarting ganeti-noded on ${host}...
-    ssh -oBatchMode=yes root@${host} /etc/init.d/ganeti restart &
+    ssh -oBatchMode=yes root@${host} $SYSCONFDIR/init.d/ganeti restart &
   done
   wait
 fi