This file is indexed.

/usr/lib/xcp/bin/xe-toolstack-restart is in xcp-xapi 1.3.2-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Copyright (c) 2008,2009,2010 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; version 2.1 only. with the special
# exception on linking described in file LICENSE.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#

POOLCONF=`cat /etc/xcp/pool.conf`

service xcp-xapi stop
service xcp-v6d stop
service xcp-squeezed stop
[ -e /tmp/do-not-use-networkd ] || service xcp-networkd stop
service xcp-fe stop

set -e

service xcp-fe start
[ -e /tmp/do-not-use-networkd ] || service xcp-networkd start
service xcp-squeezed start
service xcp-v6d start
service xcp-xapi start
echo "done."