easy-service's People
Forkers
lissania codecopy ksharpdabu show00 fortgo viccom symbxx relleo shxiangyan yihuishou lidantongxie wangzhengbo stamilo huanmierusi rocker9527 bygreencn eillel trphoenix hydrionz yehaifeng dayutry dayifutian joe2hpimn bblzjp alviss66 isonz bolabola albertsid tudela skyformat99 nilnul yongbozhu zhangshiguang csuzhhj junior233 jonnyman12345 guanqiwei wangwenquan feitianyiren tuuzedfork sunlewuyou hyphenhuang moayyaed star4182 morphy-sudo qwenode qishiqing gygy cctv666 alexasahis jiafuyuan backups-archives navono mustangcoder mmyyhack xxoolm wutachiang 5l1v3r1 lostmanwang chenyongtaogd hong1990 st2ne gavz sh0w00 m2mmilanesi tueac mengxd codenewmaneasy-service's Issues
希望install 命令支持all模式
在服务较多的情况下需要一个一个install,比较麻烦,希望能增加批量install的功能
希望可以支持日志滚动删除
希望可以支持日志清理,即保存多少天的日志,滚动删除之前的日志
svc.exe 会被360天擎识别为木马 有什么解决方式么
svc.exe 会被360天擎识别为木马 有什么解决方式么
除了添加白名单之外的方式。。。
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()
默认脚本
win11自带的安全中心开始报毒了
建议加入开关保存日志的选项
这个想法的原因是考虑到有些服务会成吨的输出无用日志,可以考虑一下这个建议~
拒绝访问
执行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 remove 和 svc 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” ,将其恢复并加入到信任区。
win10 家庭版也出现重启后无法自启动
win10 家庭版也出现重启后无法自启动,前提已经注册为服务。
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
MaxLogFilesNum参数不起作用
希望文档里能与Nssm做个对比
系统更新至 Win11 22H2 后不可用
功能问题
我在使用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 么?配置文件中未找到多服务设置方法。
添加服务依赖功能
如题所述,目前没有服务依赖功能,请添加。
Directory argument "service-name" should contain '/' or '\'
这也太不人性化了吧,这在程序中能轻而易举实现的判断和字符串拼接,却让用户去做。
系统找不到指定文件
在注册服务的时候报了这个错误,系统找不到指定文件。是跟另一个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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.