Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
David Johnson
openstack-build-ubuntu
Commits
6d8d114e
Commit
6d8d114e
authored
May 31, 2016
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install openstack-slothd as a systemd service on Liberty.
parent
132b9961
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
setup-controller.sh
setup-controller.sh
+29
-0
No files found.
setup-controller.sh
View file @
6d8d114e
...
@@ -2718,6 +2718,35 @@ if [ -z "${SETUP_BASIC_DONE}" ]; then
...
@@ -2718,6 +2718,35 @@ if [ -z "${SETUP_BASIC_DONE}" ]; then
echo
"SETUP_BASIC_DONE=
\"
1
\"
"
>>
$SETTINGS
echo
"SETUP_BASIC_DONE=
\"
1
\"
"
>>
$SETTINGS
fi
fi
#
# Install and startup the slothd-for-openstack idleness detector
#
if
[
$OSVERSION
-ge
$OSLIBERTY
]
;
then
cp
-p
$DIRNAME
/openstack-slothd.py
$OURDIR
/
cat
<<
EOF
>/etc/systemd/system/openstack-slothd.service
[Unit]
Description=OpenStack Slothd
After=network.target network-online.target local-fs.target
Wants=network.target
Before=rabbitmq-server.service
Requires=rabbitmq-server.service
[Service]
Type=simple
RemainAfterExit=no
ExecStart=
$OURDIR
/openstack-slothd.py
StandardOutput=journal+console
StandardError=journal+console
[Install]
WantedBy=multi-user.target
EOF
systemctl
enable
openstack-slothd.service
systemctl restart openstack-slothd.service
fi
RANDPASSSTRING
=
""
RANDPASSSTRING
=
""
if
[
-e
$OURDIR
/random_admin_pass
]
;
then
if
[
-e
$OURDIR
/random_admin_pass
]
;
then
RANDPASSSTRING
=
"We generated a random OpenStack admin and instance VM password for you, since one wasn't supplied. The password is '
${
ADMIN_PASS
}
'"
RANDPASSSTRING
=
"We generated a random OpenStack admin and instance VM password for you, since one wasn't supplied. The password is '
${
ADMIN_PASS
}
'"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment