Skip to content

Commit

Permalink
服务配置目录
Browse files Browse the repository at this point in the history
  • Loading branch information
LinWin-Cloud authored Oct 16, 2022
1 parent b7162f8 commit 71f70ac
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sevice/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Main-Version: 1.0
Main-Class: ServerBoot
Binary file added Sevice/ServerBoot.class
Binary file not shown.
Binary file added Sevice/ServerBoot.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions Sevice/ServerBoot.java
Original file line number Diff line number Diff line change
@@ -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());
}
}
}

13 changes: 13 additions & 0 deletions Sevice/desktop/linwinhttp.desktop
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions Sevice/shell/start_http.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash

cd ../server/
java -jar LinWinHttp.jar
4 changes: 4 additions & 0 deletions Sevice/shell/start_porxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd ../proxy/
java -jar LinWin_Proxy.jar
11 changes: 11 additions & 0 deletions Sevice/systemd/linwinhttp.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 71f70ac

Please sign in to comment.