summaryrefslogtreecommitdiffstats
path: root/satellit_installer
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer')
-rw-r--r--satellit_installer/static_files/slxadmin/etc/systemd/system/slxadmin-boot.service2
-rwxr-xr-xsatellit_installer/static_files/slxadmin/opt/openslx/slxadmin-bootscript5
2 files changed, 6 insertions, 1 deletions
diff --git a/satellit_installer/static_files/slxadmin/etc/systemd/system/slxadmin-boot.service b/satellit_installer/static_files/slxadmin/etc/systemd/system/slxadmin-boot.service
index 3322028..ede9d43 100644
--- a/satellit_installer/static_files/slxadmin/etc/systemd/system/slxadmin-boot.service
+++ b/satellit_installer/static_files/slxadmin/etc/systemd/system/slxadmin-boot.service
@@ -3,7 +3,7 @@ Description=Trigger init hooks of slx-admin
RefuseManualStart=yes
Before=lighttpd.service
After=mariadb.service network-online.target taskmanager.service
-Wants=network-online.target
+Wants=network-online.target taskmanager.service
[Service]
Type=oneshot
diff --git a/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-bootscript b/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-bootscript
index 55afbe8..937de4f 100755
--- a/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-bootscript
+++ b/satellit_installer/static_files/slxadmin/opt/openslx/slxadmin-bootscript
@@ -2,6 +2,11 @@
/usr/local/sbin/slx-wait-online
+# Even though we order this after taskmanager.service, it seems systemd
+# still starts this up too soon, when maybe taskmanager doesn't have
+# the port open yet. So let's go back to good old trial-and-error sleep
+sleep 5
+
FILE=$(mktemp)
if ! php /srv/openslx/www/slx-admin/api.php init > "$FILE" 2>&1; then