1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-06 08:12:40 +02:00

feat: support Ubuntu 18.04 Bionic

This commit is contained in:
Doro Wu
2018-07-10 09:31:46 +08:00
parent 4f187de35b
commit fe4d1d6336
4 changed files with 104 additions and 97 deletions
+8 -2
View File
@@ -28,7 +28,10 @@ class State(object):
def _update_health(self):
health = True
output = gsp.check_output(['supervisorctl', 'status'])
output = gsp.check_output([
'supervisorctl', '-c', '/etc/supervisor/supervisord.conf',
'status'
])
for line in output.strip().split('\n'):
if not line.startswith('web') and line.find('RUNNING') < 0:
health = False
@@ -68,7 +71,10 @@ class State(object):
self.size_changed_count += 1
def apply_and_restart(self):
gsp.check_call(['supervisorctl', 'restart', 'x:'])
gsp.check_call([
'supervisorctl', '-c', '/etc/supervisor/supervisord.conf',
'restart', 'x:'
])
self._w = self._h = self._health = None
self.notify()