mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 去除mongod.service
parent
698d855b8f
commit
fbc8245573
|
|
@ -479,7 +479,7 @@ run_installation() {
|
||||||
cat > /etc/systemd/system/${SERVICE_NAME}.service <<EOF
|
cat > /etc/systemd/system/${SERVICE_NAME}.service <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=MaiCore
|
Description=MaiCore
|
||||||
After=network.target mongod.service ${SERVICE_NAME_NBADAPTER}.service
|
After=network.target ${SERVICE_NAME_NBADAPTER}.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
@ -492,21 +492,21 @@ RestartSec=10s
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/systemd/system/${SERVICE_NAME_WEB}.service <<EOF
|
# cat > /etc/systemd/system/${SERVICE_NAME_WEB}.service <<EOF
|
||||||
[Unit]
|
# [Unit]
|
||||||
Description=MaiCore WebUI
|
# Description=MaiCore WebUI
|
||||||
After=network.target mongod.service ${SERVICE_NAME}.service
|
# After=network.target ${SERVICE_NAME}.service
|
||||||
|
|
||||||
[Service]
|
# [Service]
|
||||||
Type=simple
|
# Type=simple
|
||||||
WorkingDirectory=${INSTALL_DIR}/MaiBot
|
# WorkingDirectory=${INSTALL_DIR}/MaiBot
|
||||||
ExecStart=$INSTALL_DIR/venv/bin/python3 webui.py
|
# ExecStart=$INSTALL_DIR/venv/bin/python3 webui.py
|
||||||
Restart=always
|
# Restart=always
|
||||||
RestartSec=10s
|
# RestartSec=10s
|
||||||
|
|
||||||
[Install]
|
# [Install]
|
||||||
WantedBy=multi-user.target
|
# WantedBy=multi-user.target
|
||||||
EOF
|
# EOF
|
||||||
|
|
||||||
cat > /etc/systemd/system/${SERVICE_NAME_NBADAPTER}.service <<EOF
|
cat > /etc/systemd/system/${SERVICE_NAME_NBADAPTER}.service <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue