diff --git a/Sevice/MANIFEST.MF b/Sevice/MANIFEST.MF new file mode 100644 index 0000000..8783659 --- /dev/null +++ b/Sevice/MANIFEST.MF @@ -0,0 +1,2 @@ +Main-Version: 1.0 +Main-Class: ServerBoot diff --git a/Sevice/ServerBoot.class b/Sevice/ServerBoot.class new file mode 100644 index 0000000..bef3216 Binary files /dev/null and b/Sevice/ServerBoot.class differ diff --git a/Sevice/ServerBoot.jar b/Sevice/ServerBoot.jar new file mode 100644 index 0000000..1ff352e Binary files /dev/null and b/Sevice/ServerBoot.jar differ diff --git a/Sevice/ServerBoot.java b/Sevice/ServerBoot.java new file mode 100644 index 0000000..f8ff129 --- /dev/null +++ b/Sevice/ServerBoot.java @@ -0,0 +1,17 @@ + +public class ServerBoot { + public static void main(String[]args) throws Exception + { + try + { + Runtime.getRuntime().exec("./shell/start_http.sh"); + Runtime.getRuntime().exec("./shell/start_porxy.sh"); + + } + catch (Exception E) + { + System.out.println(E.getMessage()); + } + } +} + diff --git a/Sevice/desktop/linwinhttp.desktop b/Sevice/desktop/linwinhttp.desktop new file mode 100644 index 0000000..8a9e49e --- /dev/null +++ b/Sevice/desktop/linwinhttp.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher +X-Deepin-AppID=com.qq.music +Categories=Utility; +Comment=qqmusic application for linux +Exec=/usr/LinWinHttp/start_linwinhttp %U +Icon=/usr/LinWinHttp/out/production/LinWinHttpServer/img/logo.png +Name=LinWin Http Server +GenericName=LinWin Http Server +Name[zh_CN]=LinWin Http Server +Terminal=false +Type=Application +X-Deepin-Vendor=user-custom diff --git a/Sevice/shell/start_http.sh b/Sevice/shell/start_http.sh new file mode 100644 index 0000000..e77ba4f --- /dev/null +++ b/Sevice/shell/start_http.sh @@ -0,0 +1,4 @@ +#! /bin/bash + +cd ../server/ +java -jar LinWinHttp.jar \ No newline at end of file diff --git a/Sevice/shell/start_porxy.sh b/Sevice/shell/start_porxy.sh new file mode 100644 index 0000000..d34ebf6 --- /dev/null +++ b/Sevice/shell/start_porxy.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd ../proxy/ +java -jar LinWin_Proxy.jar \ No newline at end of file diff --git a/Sevice/systemd/linwinhttp.service b/Sevice/systemd/linwinhttp.service new file mode 100644 index 0000000..faa9d3a --- /dev/null +++ b/Sevice/systemd/linwinhttp.service @@ -0,0 +1,11 @@ +[Unit] +Description=LinWin-Http-Server +After=network.target + +[Service] +ExecStart=/usr/LinWinHttp/sys/linwinhttp_start.sh +Default-Start=/usr/LinWinHttp/sys/linwinhttp_start.sh +Defualt-Stop=/bin/linwinhttp -server_stop + +[Install] +WantedBy=muti-user.target