added support for logging

This commit is contained in:
Manuel Friedli 2015-10-01 22:31:16 +02:00
parent ab4fe13f4e
commit 0d081a0fbf
4 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,6 @@
AUX gitlab-ci-multi-runner.init 640 SHA256 2ec761220c920221b1978b34fc4023f9c1a98cabc18dc30fa6f08d5a1efbc9c3 SHA512 d18d9da295f7fa61bbc978490f67d89eb7e0ee597305b2dacff544c8b22a0b5ef2c02570ac00af3ebf593d5b3f983e464075203b4ef3a8a8ab615a7344be7f37 WHIRLPOOL 943d13f7057498d9584764785be41f0ff1c5ddaf91485aa7c94e1b8373221712bc0544768faae475dd5379d15cb622e8ac89a918b779634cb1af8b3a83db0b0b
AUX gitlab-ci-multi-runner.conf 51 SHA256 4a8b8d66e44d477f4dd5c13279cf002a200dfc28e9799226fbdd3b1e94516641 SHA512 ef75cfa9f371a18816f9d4ea04469d810793db130587abf7575665241d44463de9a7d5491a6c6bf09adf02861358bbfdb487ba6dbd5c58706b613dbe72b76b27 WHIRLPOOL 4486424ce029e80fe85fbb089024fe15086baa3e5f7980ad50c3d5e900c73b6949440200b7e197c7761a3eb49be46343dd094dd08d98196d34d965524c5b3f77
AUX gitlab-ci-multi-runner.init 646 SHA256 75335e941d5207f3221db898ccd3bbe8058f0e48acddf30fbb89416c5a33613d SHA512 a19bc8ac171f16b25ae333ff9fa5dbd56fb958443594d924933faa939994ec8f8904c59b7dbb8d51d16c93945b9e46d3202ae9f0e11a0cd958d61df7d58a2d09 WHIRLPOOL 95f1cc4954e30d45cf683bc67ff00fdc996c11c86fc7e437352aa11ef8bcb5bca0e2c819f66caf9e96e65856a3f604049b04e119774056e59ba0887255cb271d
DIST gitlab-ci-multi-runner-0.5.5-amd64 11633640 SHA256 00982b6f9cfea548a3e41fad9f50f2c8b221251ea2e7e8ac64563f62663537a3 SHA512 89a9474b5dc0dfd5bf53e4c60f40c43f8db1288e49960dc58d5283a61c22474c682041b3b04a4b4533536deef63cc06a65f0b5440891c5f7951d45508236563a WHIRLPOOL 1375f34887bc09d29ff2009a8344e6ec7c2a7d16f31ca1d063cce30607c003df99f80dd4d01244e991745d0ccdccce76077e6597e5ccb38a89a6cce59324b2b9
DIST gitlab-ci-multi-runner-0.5.5-arm 9292840 SHA256 0c1641fe1bff208e9166ad1ea3898652989017711e51b38838c48365de2870f5 SHA512 1d9a6c7200614acfa5c3461187ab9df0fe46bead5284d586ea24e2c7c243422ae096dd6faf40ca2b05d3fe567d589a33a87212449fcc7ff56ec1e759955d44c9 WHIRLPOOL 8ea40c13de87cffd1c77dedba64315133106bdfe0cfb8d87da8932d6abde0e88d6577fb9c8ada090b98a0f65d82e105b57a2236fe24385ed72c62a760f36256a
DIST gitlab-ci-multi-runner-0.5.5-x86 9377072 SHA256 d9cfc1fb809a4954b18b9d15cae078c552715ab8d596c5e07db2104131c286fb SHA512 952f60dca6cc5a46bc2906ad38e3f02b97181c48480fd0ea91c00e96a266cf37d105da4af1934b294c72a507cfd8e114c2907df80e4269cb082bc0775e451258 WHIRLPOOL 1d512571520a2901e00f758cdfb33441f885a801c717b06b72b626731b9c7e4637b6796fd21944032a1ab5215228e5f288577c4498a52256321446e8ef7fb8aa
EBUILD gitlab-ci-multi-runner-0.5.5.ebuild 2275 SHA256 e1a7a816dd044047343f39cf6f610acbff5ea0ea0fcca15084644f85cbda3523 SHA512 102094e351cbee0d35101b9f3fb9940429b740cdd69a43ab85e261da0b3270b331e60120f66a73a8780ebb7b90fca918a64f12b6005003e40cb9472db1d9acee WHIRLPOOL 17d98021688fe778a082cf2dd22757a38944f41139d57cbdae5f4316bcbbf4616a1609f744bdf55dd4b02fd31601c8ce04e2a3fd67550866ce64f1b8a02332d6
EBUILD gitlab-ci-multi-runner-0.5.5-r1.ebuild 2318 SHA256 7176917ec5a10bf8e2359d24e407416d1b9fdf81346105ac3a7cea3a6007fd35 SHA512 4e188a45f7d65b87b0731afc577bdfa743c88a581a39b2cf47beba183bc34ca8267fed4c8d692bed1df8727b561f4319f7cbe0b8fba3b3378090fc116d71ccb1 WHIRLPOOL bc3146adf2d19fe156fbcebff4b2f277bd589d7ec9885e93c4b36977d7195b975a0e505df3284bb38cf044df919193c990830f8cc4f4eafc53a36a38d3b904d4

View file

@ -0,0 +1 @@
LOGFILE=/var/log/gitlab/gitlab-ci-multi-runner.log

View file

@ -10,7 +10,7 @@ depend() {
start() {
ebegin "Starting gitlab-ci-multi-runner"
checkpath -d /var/run
start-stop-daemon --start -b -u @USER@ --chdir /opt/gitlab-ci-multi-runner --pidfile /var/run/gitlab-ci-multi-runner.pid -1 /dev/null -2 /dev/null --make-pidfile \
start-stop-daemon --start -b -u @USER@ --chdir /opt/gitlab-ci-multi-runner --pidfile /var/run/gitlab-ci-multi-runner.pid -1 "${LOGFILE}" -2 "${LOGFILE}" --make-pidfile \
--exec /opt/gitlab-ci-multi-runner/gitlab-ci-multi-runner -- run
eend $?
}

View file

@ -68,7 +68,7 @@ src_install() {
## RC script ##
local rcscript=gitlab-ci-multi-runner.init
local rcscript="${MY_NAME}.init"
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
@ -77,6 +77,7 @@ src_install() {
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_NAME}"
newconfd "${FILESDIR}/${MY_NAME}.conf" "${MY_NAME}"
}
pkg_postinst() {