diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 18:52:17 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 18:52:17 +0100 |
commit | 22241b17fed886cd535b48366b55a3e5a9d4f2e8 (patch) | |
tree | ce245db65b8727ca1263316ee9fe6c59474840f1 /tools/misc/xend | |
parent | 1943191f67703b7fe41838cd2b40e061cfab8541 (diff) | |
download | xen-22241b17fed886cd535b48366b55a3e5a9d4f2e8.tar.gz xen-22241b17fed886cd535b48366b55a3e5a9d4f2e8.tar.bz2 xen-22241b17fed886cd535b48366b55a3e5a9d4f2e8.zip |
[SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/misc/xend')
-rw-r--r-- | tools/misc/xend | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/misc/xend b/tools/misc/xend index ff58b30773..b0ee27f556 100644 --- a/tools/misc/xend +++ b/tools/misc/xend @@ -19,6 +19,9 @@ The daemon should reconnect to device control interfaces and recover its state when restarted. + + On Solaris, the daemons are SMF managed, and you should not attempt + to start xend by hand. """ import os import os.path @@ -108,9 +111,10 @@ def main(): if not sys.argv[1:]: print 'usage: %s {start|stop|restart}' % sys.argv[0] elif sys.argv[1] == 'start': - start_xenstored() - start_consoled() - start_blktapctrl() + if os.uname()[0] != "SunOS": + start_xenstored() + start_consoled() + start_blktapctrl() return daemon.start() elif sys.argv[1] == 'trace_start': start_xenstored() |