Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: perf/build_release

Issue 1473383002: Moved Perf to systemd and also move to using tracedb. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: perf/build_release
diff --git a/perf/build_release b/perf/build_release
index 34d793e3312b6c68c16ea4cd6e5c07f05de206c8..7826f306ac39e3dce94cc5838a8d7aa0d9aab2b4 100755
--- a/perf/build_release
+++ b/perf/build_release
@@ -1,7 +1,8 @@
#!/bin/bash
# Builds and uploads a debian package for perf.
-APPNAME=skiaperf
+APPNAME=skiaperfd
DESCRIPTION="Manages performance metrics."
+SYSTEMD="${APPNAME}.service"
DEPENDS=git
@@ -11,29 +12,14 @@ copy_release_files()
INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root"
-${INSTALL} --mode=755 -T ${GOPATH}/bin/skiaperf ${ROOT}/usr/local/bin/skiaperf
-${INSTALL} --mode=755 -T ${GOPATH}/bin/ingest ${ROOT}/usr/local/bin/ingest
-${INSTALL} --mode=755 -T ${GOPATH}/bin/tiletool ${ROOT}/usr/local/bin/tiletool
-${INSTALL} --mode=755 -T ${GOPATH}/bin/perf_migratedb ${ROOT}/usr/local/bin/perf_migratedb
+${INSTALL} --mode=755 -T ${GOPATH}/bin/skiaperf ${ROOT}/usr/local/bin/skiaperf
+${INSTALL} --mode=755 -T ${GOPATH}/bin/perf_migratedb ${ROOT}/usr/local/bin/perf_migratedb
+${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
-${INSTALL} --mode=644 -T ./sys/perf_monit ${ROOT}/etc/monit/conf.d/skiaperf
-${INSTALL} --mode=755 -T ./sys/perf_init ${ROOT}/etc/init.d/skiaperf
-
-${INSTALL} --mode=644 -T ./sys/ingest_monit ${ROOT}/etc/monit/conf.d/ingest
-${INSTALL} --mode=755 -T ./sys/ingest_init ${ROOT}/etc/init.d/ingest
-
-${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/skiaperf/templates
-${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/skiaperf/templates
-${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/skiaperf/res/imp
-${INSTALL} --mode=644 ./res/imp/*.html ${ROOT}/usr/local/share/skiaperf/res/imp
-
-${INSTALL} --mode=644 ./perf_ingest.toml ${ROOT}/usr/local/share/skiaperf/perf_ingest.toml
-
-${INSTALL} --mode=644 ./res/css/perf.css ${ROOT}/usr/local/share/skiaperf/res/css/perf.css
-${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/share/skiaperf/res/img/favicon.ico
-${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/share/skiaperf/res/js/core.js
-${INSTALL} --mode=644 ./res/js/index.js ${ROOT}/usr/local/share/skiaperf/res/js/index.js
-${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/share/skiaperf/res/vul/elements.html
+${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/skiaperf/templates
+${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/share/skiaperf/res/img/favicon.ico
+${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/share/skiaperf/res/js/core.js
+${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/share/skiaperf/res/vul/elements.html
}
source ../bash/release.sh

Powered by Google App Engine
This is Rietveld 408576698