-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
we need to support the ssh approach one last time while the web serve…
…r is offline
- Loading branch information
1 parent
08152e7
commit 49a0e68
Showing
3 changed files
with
51 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,8 +47,8 @@ if [ "$HOSTNAME" != "$LEADER_HOSTNAME" ]; then | |
chmod +x $UI_FOLDER/main.fcgi | ||
|
||
# install lighttp and set up mods | ||
unzip lighttpd_packages.zip -d lighttpd_packages | ||
dpkg -i lighttpd_packages/*.deb | ||
unzip "$SCRIPT_DIR"/lighttpd_packages.zip -d "$SCRIPT_DIR"/lighttpd_packages | ||
dpkg -i "$SCRIPT_DIR"/lighttpd_packages/*.deb | ||
|
||
# install our own lighttpd service | ||
cp -u "$SCRIPT_DIR"/lighttpd.service $SYSTEMD_DIR | ||
|
@@ -70,12 +70,30 @@ if [ "$HOSTNAME" != "$LEADER_HOSTNAME" ]; then | |
cp -u "$SCRIPT_DIR"/huey.service $SYSTEMD_DIR | ||
cp -u "$SCRIPT_DIR"/create_diskcache.service $SYSTEMD_DIR | ||
|
||
systemctl enable huey.service | ||
# test new services | ||
huey_consumer -h | ||
lighttpd -h | ||
flask --help | ||
|
||
|
||
|
||
# we need to restart the monitor jobs on the worker so that the new table (pio_job_metadata) and db exist first | ||
systemctl restart [email protected] | ||
sleep 5 | ||
|
||
systemctl enable create_diskcache.service | ||
systemctl enable lighttpd.service | ||
systemctl enable huey.service | ||
|
||
systemctl start create_diskcache.service | ||
systemctl start lighttpd.service | ||
systemctl start huey.service | ||
|
||
sleep 1 | ||
|
||
# test: | ||
curl -LI localhost/unit_api/jobs/running | ||
|
||
# don't need to start these services, as we do a pio update ui which should handle this. | ||
else | ||
|
||
CONFIG_FILE=/etc/lighttpd/conf-available/50-pioreactorui.conf | ||
|
@@ -89,10 +107,3 @@ else | |
fi | ||
|
||
fi | ||
|
||
|
||
|
||
# test services | ||
huey_consumer -h | ||
lighttpd -h | ||
flask --help |