mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
change /usr/local/bin to /usr/bin (#131)
This commit is contained in:
parent
1eade9b358
commit
68f260d878
5 changed files with 10 additions and 11 deletions
|
@ -33,7 +33,7 @@ BUILD=`cat ${PACKDIR}/VAR_BUILD | perl -ne 'chomp and print'`
|
|||
|
||||
mkdir -p "${TEMPDIR}" && echo "*** Created : ${TEMPDIR}"
|
||||
|
||||
mkdir -p "${TEMPDIR}/usr/local/bin/"
|
||||
mkdir -p "${TEMPDIR}/usr/bin/"
|
||||
mkdir -p "${TEMPDIR}/lib/systemd/system/"
|
||||
|
||||
echo "*** Version : ${VERSION}-${BUILD}"
|
||||
|
@ -45,7 +45,7 @@ echo "*** Out .deb : ${OUT_DEB}"
|
|||
|
||||
# Copy the binary
|
||||
|
||||
cp "./bin/${EXENAME_SRC}" "${TEMPDIR}/usr/local/bin/${EXENAME_DST}"
|
||||
cp "./bin/${EXENAME_SRC}" "${TEMPDIR}/usr/bin/${EXENAME_DST}"
|
||||
|
||||
# Copy supporting files
|
||||
|
||||
|
|
|
@ -62,11 +62,11 @@ Requires: libc
|
|||
VictoriaMetrics is fast, cost-effective and scalable time series database. It can be used as a long-term remote storage for Prometheus.
|
||||
|
||||
%files
|
||||
%attr(0744, root, root) /usr/local/bin/*
|
||||
%attr(0744, root, root) /usr/bin/*
|
||||
%attr(0644, root, root) /lib/systemd/system/*
|
||||
|
||||
%prep
|
||||
mkdir -p \$RPM_BUILD_ROOT/usr/local/bin/
|
||||
mkdir -p \$RPM_BUILD_ROOT/usr/bin/
|
||||
mkdir -p \$RPM_BUILD_ROOT/lib/systemd/system/
|
||||
|
||||
cp ${PWD}/bin/${EXENAME_SRC} \$RPM_BUILD_ROOT/usr/local/bin/${EXENAME_DST}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
%global _prefix /usr/local
|
||||
|
||||
Name: victoriametrics
|
||||
Version: 1.22.2
|
||||
Release: 1
|
||||
Version: 1.23.0
|
||||
Release: 3
|
||||
Summary: The best long-term remote storage for Prometheus
|
||||
|
||||
Group: Development Tools
|
||||
|
|
|
@ -6,8 +6,9 @@ After=network.target
|
|||
Type=simple
|
||||
StartLimitBurst=5
|
||||
StartLimitInterval=0
|
||||
Restart=on-abort
|
||||
ExecStart=/usr/local/bin/victoriametrics -storageDataPath=/var/lib/victoria-metrics-data start
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
ExecStart=/usr/bin/victoriametrics -storageDataPath=/var/lib/victoria-metrics-data
|
||||
ExecStop=/bin/kill -s SIGTERM $MAINPID
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=32000
|
||||
|
|
|
@ -8,7 +8,7 @@ StartLimitBurst=5
|
|||
StartLimitInterval=0
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
ExecStart=/usr/local/bin/victoria-metrics-prod -storageDataPath=/var/lib/victoria-metrics-data
|
||||
ExecStart=/usr/bin/victoria-metrics-prod -storageDataPath=/var/lib/victoria-metrics-data
|
||||
ExecStop=/bin/kill -s SIGTERM $MAINPID
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=32000
|
||||
|
|
Loading…
Reference in a new issue