summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2015-06-10 19:56:12 +0200
committerChristian Rößler2015-06-10 19:56:12 +0200
commit6addaaa45fd320be3f506e3567770db375b18b67 (patch)
tree47b69657b247f9e20a9456e6757eff6e1ee02daf
parent[SSPS] And another bug. (diff)
downloadsetup-scripts-6addaaa45fd320be3f506e3567770db375b18b67.tar.gz
setup-scripts-6addaaa45fd320be3f506e3567770db375b18b67.tar.xz
setup-scripts-6addaaa45fd320be3f506e3567770db375b18b67.zip
[SSPS] Some more fixing.
-rw-r--r--satellit_installer/includes/10-script_dropper.inc1
-rw-r--r--satellit_installer/static_files/rclocal_script.sh6
2 files changed, 4 insertions, 3 deletions
diff --git a/satellit_installer/includes/10-script_dropper.inc b/satellit_installer/includes/10-script_dropper.inc
index c5543da..9c7fd5f 100644
--- a/satellit_installer/includes/10-script_dropper.inc
+++ b/satellit_installer/includes/10-script_dropper.inc
@@ -35,6 +35,7 @@ drop_keychanger_rclocal() {
fi
if [ "$SYSTEMD" ]; then
if ! grep -q "WantedBy=multi-user.target" /lib/systemd/system/rc-local.service; then
+ echo "After=mysql.service" >> /lib/systemd/system/rc-local.service
echo "" >> /lib/systemd/system/rc-local.service
echo "[Install]" >> /lib/systemd/system/rc-local.service
echo "WantedBy=multi-user.target" >> /lib/systemd/system/rc-local.service
diff --git a/satellit_installer/static_files/rclocal_script.sh b/satellit_installer/static_files/rclocal_script.sh
index bec4c9f..aaba748 100644
--- a/satellit_installer/static_files/rclocal_script.sh
+++ b/satellit_installer/static_files/rclocal_script.sh
@@ -93,7 +93,7 @@ if [ $? -eq 0 ]; then
[Service]
ExecStart=$DMSDDIR/dmsd.sh
- Restart=restart-always
+ Restart=always
[Install]
WantedBy=multi-user.target
@@ -107,7 +107,7 @@ if [ $? -eq 0 ]; then
[Service]
ExecStart=$TASKMANDIR/taskmanager.sh
- Restart=restart-always
+ Restart=always
[Install]
WantedBy=multi-user.target
@@ -121,7 +121,7 @@ if [ $? -eq 0 ]; then
[Service]
ExecStart=/opt/syncdaemon/syncdaemon.sh
- Restart=restart-always
+ Restart=always
[Install]
WantedBy=multi-user.target