SyncThingWin -- Run syncthing as a windows service
SyncThingWin
Auto restart and minor bug fixes
bloones released this on 23 Dec 2014
There is now an auto-restart syncthing option in the configuration screen that allow to restart syncthing if the program stop or shutdown instead of stopping the service. A limit can be placed on the number of shutdown authorized by period of time after which the service will stop trying the start syncthing and stop instead.
A minor installation bug was also fixed that would cause a null exception if the syncthing process priority was not set in the configuration options.
To update syncthingtray, just stop the service, replace the executable, execute syncthingtray configure to change the configuration if needed (The auto-restart syncthign will be disabled by default), then start the service.
In the source code folder, I included a debug folder with the debug executable in case somebody has an issue and need troubleshooting capabilities.
Downloads
Run syncthing as a windows service
bloones released this on 20 Dec 2014 · 1 commit to master since this release
SyncThingTray allow to run syncthing (http://syncthing.net/) as a windows service.
SyncThingTray requires the .Net framework 4.5.1 and was tested under Windows 8 but should be compatible with all desktop version of windows.
SyncTray executable work both as the windows service as well as the system tray notification.
To install and configure the service, copy the executable and the dll where you want it to be installed, then execute SyncThingTray. You will be prompted for the location of the current configuration of syncthing (Will be populated if found), the new, user independent, location of the configuration and the path to the syncthing executable. Additional options are available to configure the service and allow to uninstall the service. The service will run as long as syncthing is running. If syncthing is stopped via the web GUI, the service will stop. If the service is stopped, a shutdown request will be sent to Syncthing if an API has been generated. If the shutdown request does not succeed in time, then syncthing will be closed using a ctrl+c command and finally killed if everything else fails.
When installed and running, the service can be monitored by executing SyncThingTray again (Should be added as a shortcut in the user start menu, startup folder). The SyncThingTray will display a copy of the syncthing console (Which can be safely closed), will notify you if the service is started or stopped and also provide, using a right click on the tray icon, additional functionality:
Show Console: If the console has been closed, allow to show it again
Show Gui: Open the syncthing web gui using your default browser by reading the address in the configruation file.
Restart: Request syncthing to restart itself. This functionality requires a API Key to be generated in the syncthing web GUI.
Upgrade: Request syncthing to upgrade itself if an upgrade if available. This functionality requires a API Key to be generated in the syncthing web GUI.
Shutdown: Request syncthing to shutdown. This functionality requires a API Key to be generated in the syncthing web GUI. Soon after, you will receive a notification that the service has stopped.
Stop Service and Start Service: Allow to start and stop the windows service.
SyncThingTray also support the following command lines:
SyncThingTray install: Just install the windows service with no configuration
SyncThingTray uninstall: uninstall the windows service but not the configruation
SyncThingTray start: Start the windows service
SyncThingTray stop: Stop the windows service
SyncThingTray configure: Open the configuration screen for further options
SyncThingTray shutdown: Sent a request to syncthing to shutdown. An error message will be shown if failure occure but no success message is displayed.
SyncThingTray restart: Sent a request to syncthing to restart. An error message will be shown if failure occure but no success message is displayed.
SyncThingTray upgrade: Sent a request to syncthing to upgrade itself if a new version is available. An error message will be shown if failure occure but no success message is displayed.
In the hope that this project will be helpful.
Downloads
SyncThingWin -- Run syncthing as a windows service的更多相关文章
- How to Run Syncthing 24/7 as a Windows Service with AlwaysUp
http://www.coretechnologies.com/products/AlwaysUp/Apps/RunSyncthingAsAWindowsService.html Automatica ...
- 如何利用mono把.net windows service程序迁移到linux上
How to migrate a .NET Windows Service application to Linux using mono? 写在最前:之所以用要把windows程序迁移到Linux上 ...
- 如何托管ASP.NET Core应用到Windows Service中
(此文章同时发表在本人微信公众号"dotNET开发经验谈",欢迎右边二维码来关注.) 题记:正在构思一个中间件的设计,考虑是否既可以使用最新的技术,也可以兼顾传统的部署模式.所以有 ...
- 使用Windows Service Wrapper快速创建一个Windows Service
前言 今天介绍一个小工具的使用.我们都知道Windows Service是一种特殊的应用程序,它的好处是可以一直在后台运行,相对来说,比较适合一些需要一直运行同时不需要过多用户干预的应用程序,这一类我 ...
- Windows Service--Write a Better Windows Service
原文地址: http://visualstudiomagazine.com/Articles/2005/10/01/Write-a-Better-Windows-Service.aspx?Page=1 ...
- 使用Python写Windows Service服务程序
1.背景 如果你想用Python开发Windows程序,并让其开机启动等,就必须写成windows的服务程序Windows Service,用Python来做这个事情必须要借助第三方模块pywin32 ...
- How to do code coverage test for windows service
First, instrument the exe or dll by command vsinstr -coverage the dll/exe second, start the performa ...
- Windows批处理以服务的方式启动解决思路(ShadowsockR注册成Windows Service)
我以ShadowsockR的server启动来解释: 由于这东西是python,如果要启动,可以写一个批处理(python.exe server.py)来启动,但是我观察发现启动的时候是附带pytho ...
- Allow windows service to "Interact with desktop"
Typically, services are designed to run unattended without any UI with any need to interact with des ...
随机推荐
- day10作业
1.Java中,用{}括起来的代码称为代码块. 代码块分为局部代码块,构造代码块,静态代码块,同步代码块 局部代码块:在方法中出现,限定生命周期,及早释放,提高内存利用率 构造代码块:在类中方法外出现 ...
- 使用JS实现2048小游戏
JS实现2048小游戏源码 效果图: 代码如下,复制即可使用: (适用浏览器:360.FireFox.Chrome.Opera.傲游.搜狗.世界之窗. 不支持Safari.IE8及以下浏览器.) &l ...
- Android仿苹果版QQ下拉刷新实现(一) ——打造简单平滑的通用下拉刷新控件
前言: 忙完了结婚乐APP的开发,终于可以花一定的时间放在博客上了.好了,废话不多说,今天我们要带来的效果是苹果版本的QQ下拉刷新.首先看一下目标效果以及demo效果: 因为此效果实现的步骤 ...
- Dev控件删除按钮的两种方式
测试版本15.2.10:在Dev控件中删除按钮空间有两种方式:1.鼠标右键出现Delete选项,这种删除是不完全的删除,只是删除了按钮的显示,实际上按钮还是存在于代码中的.2.用键盘上的Delete键 ...
- HBase(六)HBase整合Hive,数据的备份与MR操作HBase
一.数据的备份与恢复 1. 备份 停止 HBase 服务后,使用 distcp 命令运行 MapReduce 任务进行备份,将数据备份到另一个地方,可以是同一个集群,也可以是专用的备份集群. 即,把数 ...
- Python类和人类
Python中的类 俗话说,物以类聚,人以群分,类是什么,类就是一组相同属性的集合.下面来结合人,探讨Python中类和人类的关系. 首先,我们定义一个人的类,如下: class People(obj ...
- autoit v3安装
- 再议js的传递和深复制
病理 基本类型的传递就是按值传递,比如说 var a = 1; var b = a; b = 3; console.log(a,b);//1,3 很明显,a的值并未因为b的值改变而变化,这是因为a只是 ...
- php 购物车实现购物的原理
当用户进行购物时他有可能是本商电的会员或游客(非会员):因此得出两种方案: 方案一:(会员) 用户进行购物时他是我们本商店的会员(数据库中存在该用户的数据),当用户添加商品到购物车的时候我们可以分为两 ...
- 在chrome开发者工具中观察函数调用栈、作用域链、闭包
在chrome的开发者工具中,通过断点调试,我们能够非常方便的一步一步的观察JavaScript的执行过程,直观感知函数调用栈,作用域链,变量对象,闭包,this等关键信息的变化.因此,断点调试对于快 ...