Closed nkh0472 closed 1 year ago
Motivation 本插件需要一个在后台运行的aria2c,而关于实现方式仅提供了命令行前台运行及谷歌搜索的方案,并不利于用户快速上手。 因此,我将自己实现aria2c开机自启的方案在此分享,并希望能以某种形式加入readme中。
Feature Description
WinSW.NET461.exe
aria2-winsw.exe
<service> <id>aria2</id> <name>Aria2 Service by WinSW</name> <description>aria2 is a lightweight multi-protocol and multi-source command-line download utility. </description> <executable>D:\Libraries\aria2c.exe</executable> <arguments>--conf-path=D:/Software/Aria2/aria2.conf</arguments> <priority>Normal</priority> <stoptimeout>15 sec</stoptimeout> <stopparentprocessfirst>false</stopparentprocessfirst> <startmode>Automatic</startmode> <delayedAutoStart>true</delayedAutoStart> <waithint>15 sec</waithint> <sleeptime>1 sec</sleeptime> <log mode="none"></log> </service>
aria2-winsw.exe install && aria2-winsw.exe start
aria2-winsw.exe stop && aria2-winsw.exe uninstall
aria2-winsw.wrapper.log
Is the solution code ready No
Willing to maintain the related code in the future No
挺好的方案,不过我已经准备了一个更简单的程序,会适时提供。
Motivation 本插件需要一个在后台运行的aria2c,而关于实现方式仅提供了命令行前台运行及谷歌搜索的方案,并不利于用户快速上手。 因此,我将自己实现aria2c开机自启的方案在此分享,并希望能以某种形式加入readme中。
Feature Description
WinSW.NET461.exe
重命名为aria2-winsw.exe
。aria2-winsw.exe install && aria2-winsw.exe start
,此时完成服务的安装与启动。(若需卸载,在文件所在目录下,运行命令aria2-winsw.exe stop && aria2-winsw.exe uninstall
。)aria2-winsw.wrapper.log
文件将提供一些关于服务启动过程中的日志,若服务未成功启动可供参考。Is the solution code ready No
Willing to maintain the related code in the future No