diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-05 15:55:53 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-12-05 15:55:53 +0000 |
commit | f76a3e169afcea1fa556686d5c9be7c38ae15a64 (patch) | |
tree | d8da5019c05d21ce97f422a7c00df607c421a450 | |
parent | 2dd76425f7b3b3e821ca2755da3e40952baacb8c (diff) | |
download | alpine_aports-f76a3e169afcea1fa556686d5c9be7c38ae15a64.tar.bz2 alpine_aports-f76a3e169afcea1fa556686d5c9be7c38ae15a64.tar.xz alpine_aports-f76a3e169afcea1fa556686d5c9be7c38ae15a64.zip |
testing/lxd: ugprade to 2.6.2, updated initd and confd
-rw-r--r-- | testing/lxd/APKBUILD | 20 | ||||
-rw-r--r-- | testing/lxd/lxd.confd | 23 | ||||
-rw-r--r-- | testing/lxd/lxd.initd | 31 |
3 files changed, 45 insertions, 29 deletions
diff --git a/testing/lxd/APKBUILD b/testing/lxd/APKBUILD index 531368c522..aa369b53e4 100644 --- a/testing/lxd/APKBUILD +++ b/testing/lxd/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Contributor: Carlo Landmeter <clandmeter@gmail.com> | 1 | # Contributor: Carlo Landmeter <clandmeter@gmail.com> |
2 | # Maintainer: Francesco Colista <fcolista@alpinelinux.org> | 2 | # Maintainer: Francesco Colista <fcolista@alpinelinux.org> |
3 | pkgname=lxd | 3 | pkgname=lxd |
4 | pkgver=2.6 | 4 | pkgver=2.6.2 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="a container hypervisor and a new user experience for LXC" | 6 | pkgdesc="a container hypervisor and a new user experience for LXC" |
7 | url="https://linuxcontainers.org/lxd/" | 7 | url="https://linuxcontainers.org/lxd/" |
@@ -55,12 +55,12 @@ package() { | |||
55 | "$pkgdir"/etc/conf.d/lxd || return 1 | 55 | "$pkgdir"/etc/conf.d/lxd || return 1 |
56 | } | 56 | } |
57 | 57 | ||
58 | md5sums="1bc362f7fa1a33d7012a606f6b54ec47 lxd-2.6.tar.gz | 58 | md5sums="59a4f949c7cc6bb3846998e9d4e9adaa lxd-2.6.2.tar.gz |
59 | 370234287e61d9a8fa80e7779629f908 lxd.confd | 59 | b8649b4f5682d8392b3e60def716c2e8 lxd.confd |
60 | b51c126976c5c6fc26e520eb7431315c lxd.initd" | 60 | 6e48df5cdd6fb7f474fe4dccbc93d627 lxd.initd" |
61 | sha256sums="4d8456c01554676e37dcfb9aa44b0566f26ea91b7518419b388423e44107799c lxd-2.6.tar.gz | 61 | sha256sums="a7c5e584a6fcb867a3e57818dbbbcd11b13195111fb883e16104d3c72603cd58 lxd-2.6.2.tar.gz |
62 | 7a8dd2b4bd74463fc912800b4242c1368b479ffde97f58e2ac4f28983fd90c67 lxd.confd | 62 | 058885f87bfa5c831f4432f0e111a522a4885c3a30fd48126f8c9e1e0ab944f4 lxd.confd |
63 | 44fec1554786d833a04295beada70ddd8724146727fb54f580b458d714f43e03 lxd.initd" | 63 | 0d11e2473b1c6bbbeaad1fc0dde8aeb37eb09b7a5152db13e0bc60935e597442 lxd.initd" |
64 | sha512sums="7b6c68cb2eafe5295922fb2179b77aebb3971f3930312464ee978d8a465f6d82edfc9a75127b46334ee03dbbd5d410daa86016d7a5884a7e59bc3827bb0b7fa4 lxd-2.6.tar.gz | 64 | sha512sums="160c338a7b99a281ac51357e09ebb3090bb7efd785699e9daeccf8dea8d8bd78f3274d7885a9b9cc0322ab9909f958dc35a64a0017597efd856fc3b0af533358 lxd-2.6.2.tar.gz |
65 | 683669afe46c5cf72ef11b86f420ca22b09f61e8299ec0c59be515917a912da30e46be82327f6cd76096ac2bfba02ca259771cddd3de5b2068e5ce06533b26f3 lxd.confd | 65 | 14892b2efa96f4938497a7ea0b7b2b7ab630b287c8444b666d24b4aa4fd7af265d2dcb91b4defdfa0b33da610cdc04dc3c8751f00df9209a7933bf30ea9f0790 lxd.confd |
66 | 9e12a7399b009d0d42c20263f8abd51b164dd76f42c1074c721559edc17df0b31432389c429e3d3680a5bea366f6c7c52ed546bb6d8a4171671045998a2e2c00 lxd.initd" | 66 | b9d0d4b47832ccfe5545112be9b4dda95de2c368bb617295d83d294153db8605581e243464369cfbe660afc2cb67b8f38d99695fd8d77c6710dbab4462a5b0cc lxd.initd" |
diff --git a/testing/lxd/lxd.confd b/testing/lxd/lxd.confd index 086198a55c..3d553276a5 100644 --- a/testing/lxd/lxd.confd +++ b/testing/lxd/lxd.confd | |||
@@ -1,26 +1,27 @@ | |||
1 | LXD_OPTIONS="" | ||
2 | |||
3 | # Group which owns the shared socket | 1 | # Group which owns the shared socket |
4 | LXD_OPTIONS="${LXD_OPTIONS} --group lxd" | 2 | LXD_OPTIONS+=" --group lxd" |
5 | |||
6 | # TCP address <addr:port> to listen on in addition to the unix socket (e.g., 127.0.0.1:8443) | ||
7 | #LXD_OPTIONS="${LXD_OPTIONS} --tcp 127.0.0.1:8443" | ||
8 | 3 | ||
9 | 4 | ||
10 | 5 | ||
11 | # Enable cpu profiling into the specified file | 6 | # Enable cpu profiling into the specified file |
12 | #LXD_OPTIONS="${LXD_OPTIONS} --cpuprofile ''" | 7 | #LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile" |
13 | 8 | ||
14 | # Enable memory profiling into the specified file | 9 | # Enable memory profiling into the specified file |
15 | #LXD_OPTIONS="${LXD_OPTIONS} --memprofile ''" | 10 | #LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile" |
16 | 11 | ||
17 | 12 | ||
18 | 13 | ||
19 | # Enables debug mode | 14 | # Enables debug mode |
20 | #LXD_OPTIONS="${LXD_OPTIONS} --debug" | 15 | #LXD_OPTIONS+=" --debug" |
21 | 16 | ||
22 | # For debugging, print a complete stack trace every n seconds | 17 | # For debugging, print a complete stack trace every n seconds |
23 | #LXD_OPTIONS="${LXD_OPTIONS} --print-goroutines-every 5" | 18 | #LXD_OPTIONS+=" --print-goroutines-every 5" |
24 | 19 | ||
25 | # Enables verbose mode | 20 | # Enables verbose mode |
26 | #LXD_OPTIONS="${LXD_OPTIONS} -v" | 21 | #LXD_OPTIONS+=" -v" |
22 | |||
23 | # Logfile to log to | ||
24 | #LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log" | ||
25 | |||
26 | # Enables syslog logging | ||
27 | #LXD_OPTIONS+=" --syslog" | ||
diff --git a/testing/lxd/lxd.initd b/testing/lxd/lxd.initd index 6f5576cdc1..c1aef377ab 100644 --- a/testing/lxd/lxd.initd +++ b/testing/lxd/lxd.initd | |||
@@ -1,17 +1,19 @@ | |||
1 | #!/sbin/openrc-run | 1 | #!/sbin/openrc-run |
2 | # Copyright 1999-2015 Gentoo Foundation | 2 | # Copyright 1999-2016 Gentoo Foundation |
3 | # Distributed under the terms of the GNU General Public License v2 | 3 | # Distributed under the terms of the GNU General Public License v2 |
4 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/lxd/files/lxd.initd,v 1.1 2015/07/19 20:36:34 alunduil Exp $ | 4 | # $Id$ |
5 | 5 | ||
6 | DAEMON=/usr/sbin/lxd | 6 | DAEMON=/usr/sbin/lxd |
7 | PIDFILE=/run/lxd.pid | 7 | PIDFILE=/run/lxd.pid |
8 | 8 | ||
9 | extra_commands="stopall" | ||
10 | |||
9 | depend() { | 11 | depend() { |
10 | need cgmanager | 12 | need net |
13 | use lxcfs | ||
11 | 14 | ||
12 | if echo "${LXD_OPTIONS}" | grep -e "--tcp" >/dev/null; then | 15 | # remove with 2.0 release |
13 | need net | 16 | need cgmanager |
14 | fi | ||
15 | } | 17 | } |
16 | 18 | ||
17 | start() { | 19 | start() { |
@@ -29,7 +31,20 @@ start() { | |||
29 | } | 31 | } |
30 | 32 | ||
31 | stop() { | 33 | stop() { |
32 | ebegin "Stopping lxd server" | 34 | if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then |
33 | start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} | 35 | stopall |
36 | else | ||
37 | ebegin "Stopping lxd service (but not containers)" | ||
38 | start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} | ||
39 | eend $? | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | stopall() { | ||
44 | ebegin "Stopping lxd service and containers" | ||
45 | if "${DAEMON}" shutdown; then | ||
46 | /etc/init.d/lxd zap | ||
47 | rm -f ${PIDFILE} | ||
48 | fi | ||
34 | eend $? | 49 | eend $? |
35 | } | 50 | } |