Git Product home page Git Product logo

easy-service's People

Contributors

pandolia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easy-service's Issues

Failed to create Worker

[ERROR] Failed to create Worker python main.pyin***\worker System.ComponentModel.Win32Exception (0x80004005): 系统找不到指定的文件。 在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) 在 Program.startWorker()

默认脚本

拒绝访问

执行check和test-worker都OK
但install时一直提示拒绝访问,会是什么原因?

【重要】v1.0.1中的 Win7 系统下服务无法自启动的 Bug!!!

很抱歉,在 v1.0.1 中,为实现多个服务共享一个 bin 文件,引入了一个 bug ,这个 bug 会导致在 Win7 下系统重启时服务无法自启动

如果是 Win7 系统,且运行 svc version 返回 Easy Service: v1.0.1 ,那么需要进行修复。其他情况都不需要。

解决方案 1 (临时):
在所有 svc.conf 文件中加入依赖: Dependencies: RpcLocator ,然后执行 svc removesvc install 命令重新安装一下所有 EasyService 服务。

解决方案 2 :
先执行 svc remove 删除所有 EasyService 服务,再下载新的 svc.exe (v1.0.2或以上)替换旧的 svc.exe ,最后执行 svc install 安装所有 EasyService 服务。

bug 细节:
v1.0.1 中引入了 new ManagementObjectSearcher(query).Get() ,这行代码在 Win7 下的运行依赖于 RpcLocator 服务,系统启动时此服务尚未启动就开始启动 EasyServive 服务了,导致该行代码运行出错。

在 Win10 和 Windows Server 2012 中该行代码运行不依赖于 RpcLocator 服务,因此服务可以成功自启动,这也是之前开发和使用过程中都没有发现这个 Bug 的原因。

再次抱歉给大家带来了不便!

如何集成进程序并分发?

我想直接把程序放到当前目录下
然而我这样做了之后,写的bat脚本运行在C:\Windows目录了,无法安装,命令是 svc.exe install

关于本软件被杀毒软件“天擎” 报为疑似病毒的说明

近期,本软件被升级后的杀毒软件“天擎” 报为疑似病毒,特此说明一下:首先本软件没有任何恶意代码,也没有任何恶意操作和窃取用户数据的操作,全部源代码都公开在这个 Github 仓库上,我想这个是经得起同行们的检验的;如果有“天擎”的老师,也希望能出来说明一下具体情况;如果用户需要继续使用本软件,可以在“天擎”的隔离区里面找到 “svc.exe” ,将其恢复并加入到信任区。

svc test-worker 可以成功执行程序,svc install 无法执行程序。

想部署个 npc 连 nps 的。

(base) PS D:\npc_service> svc test-worker
[svc.info] Created Worker `npc.exe` in `D:\npc_service\worker`
2023/03/14 20:59:24.243 [I] [npc.go:231]  the version of client is 0.26.10, the core version of client is 0.26.0
2023/03/14 20:59:24.248 [I] [control.go:97]  Loading configuration file D:\npc_service\worker\conf\npc.conf successfully
2023/03/14 20:59:24.289 [N] [control.go:176]  web access login username:x password:x
2023/03/14 20:59:24.318 [I] [client.go:72]  Successful connection with server ip:port
(base) PS D:\npc_service> svc install
Installed Service "npc-service"
Started Service "npc-service"

然后 svc.log 里给的是:

[2023-03-14 20:59:37] [INFO] Installed Service "npc-service"
[2023-03-14 20:59:37] [INFO] 
[2023-03-14 20:59:37] [INFO] Created Worker `npc.exe` in `D:\npc_service\worker`
[2023-03-14 20:59:37] [WARN] The worker exited without be notified, it will be re-created after 5 seconds
[2023-03-14 20:59:42] [INFO] Created Worker `npc.exe` in `D:\npc_service\worker`
[2023-03-14 20:59:43] [WARN] The worker exited without be notified, it will be re-created after 5 seconds
[2023-03-14 20:59:48] [INFO] Created Worker `npc.exe` in `D:\npc_service\worker`
[2023-03-14 20:59:49] [WARN] The worker exited without be notified, it will be re-created after 5 seconds
[2023-03-14 20:59:54] [INFO] Created Worker `npc.exe` in `D:\npc_service\worker`
[2023-03-14 20:59:55] [WARN] The worker exited without be notified, it will be re-created after 5 seconds
[2023-03-14 21:00:00] [INFO] Created Worker `npc.exe` in `D:\npc_service\worker`
[2023-03-14 21:00:01] [WARN] The worker exited without be notified, it will be re-created after 5 seconds

系统更新至 Win11 22H2 后不可用

原本也是Win11系统,但使用没有问题,直到5号更新了 Win11 22H2 版本,发现没服务启动,命令行工具也不识别svc,重新删除原环境变量后注册svc也不可用。麻烦看看 Orz
image

功能问题

我在使用svc.exe test-worker 命令后,我的程序可以正常运行,但是在使用install命令安装服务后再打开却不能正常运行。
而且使用svc.exe test-worker 命令运行后在任务管理器里面找不到我的程序进程,但当我去尝试删除我的程序时,系统提示文件已经被打开。
这个程序
https://public01-1251017876.cos.ap-beijing-1.myqcloud.com/%E5%BF%AB%E6%8D%B7%E9%94%AE%E6%8E%A7%E5%88%B6%E9%9F%B3%E9%87%8F.zip
程序界面是不可见,功能是按下Ctrl Shift Win Num+来控制系统音量增加,Ctrl Shift Win Num-来控制系统音量减小。

多服务支持

请问如何实现多个服务注册的支持,需要运行多个 svc 么?配置文件中未找到多服务设置方法。

系统找不到指定文件

在注册服务的时候报了这个错误,系统找不到指定文件。是跟另一个issue一样的问题吗?都需要用LOCAl_SYSTEM用户执行吗,我们是用管理员方式执行的命令。

[2022-01-20 16:05:39] [INFO] Installed Service "asiamac"
[2022-01-20 16:05:39] [INFO] 
[2022-01-20 16:05:43] [CRITICAL] Failed to create Worker `java -jar NetworkInterface.jar` in `E:\asia\bin\asiamac\worker`:
System.ComponentModel.Win32Exception (0x80004005): 系统找不到指定的文件。
   在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   在 Worker.Start()

arthas

if we use easy-service,the arthas can not find java process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.