1
0

fix: adb(redis) cannot start after reboot

This commit is contained in:
2024-04-08 11:02:25 +08:00
parent 5a43c9fa0a
commit 70ad2bcde0
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,6 @@ if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf
fi
cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir}
systemctl enable adb.service
fi
if [ ! -e "${FERootDir}/config.js" ]; then
@@ -96,6 +95,7 @@ systemctl enable restagent.service
systemctl enable crontask.service
systemctl enable sshsvc.service
systemctl enable captrace.service
systemctl enable adb.service
systemctl daemon-reload
systemctl stop nginx.service
systemctl stop restagent.service

View File

@@ -65,7 +65,6 @@ if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf
fi
cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir}
systemctl enable adb.service
fi
if [ ! -e "${FERootDir}/config.js" ]; then
@@ -96,6 +95,7 @@ systemctl enable restagent.service
systemctl enable crontask.service
systemctl enable sshsvc.service
systemctl enable captrace.service
systemctl enable adb.service
systemctl daemon-reload
systemctl stop nginx.service
systemctl stop restagent.service