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 ...
随机推荐
- 在JAVA中记录日志的十个小建议
JAVA日志管理既是一门科学,又是一门艺术.科学的部分是指了解写日志的工具以及其API,而选择日志的格式,消息的格式,日志记录的内容,哪种消息对应于哪一种日志级别,则完全是基于经验.从过去的实践证明, ...
- java 多线程总结篇4——锁机制
在开发Java多线程应用程序中,各个线程之间由于要共享资源,必须用到锁机制.Java提供了多种多线程锁机制的实现方式,常见的有synchronized.ReentrantLock.Semaphore. ...
- hihoCoder #1190 : 连通性·四(点的双连通分量模板)
时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi和小Ho从约翰家回到学校时,网络所的老师又找到了小Hi和小Ho. 老师告诉小Hi和小Ho:之前的分组出了点问题,当服 ...
- python 多线程删除MySQL表
一.需求分析 在<python 统计MySQL表信息>这篇博客中,链接如下: https://www.cnblogs.com/xiao987334176/p/9901692.html 已经 ...
- CF 586B 起点到终点的最短路和次短路之和
起点是右下角 终点是左上角 每次数据都是两行的点 输入n 表示有n列 接下来来的2行是 列与列之间的距离 最后一行是 行之间的距离 枚举就行 Sample test(s) input 41 ...
- CCF CSP 201509-3 模板生成系统
CCF计算机职业资格认证考试题解系列文章为meelo原创,请务必以链接形式注明本文地址 CCF CSP 201509-3 模板生成系统 问题描述 成成最近在搭建一个网站,其中一些页面的部分内容来自数据 ...
- swift中Double转String
swift上手有好几天了.发现swift除了本身的几个基本类型转换,一些比较特殊的数值类型转换需要“桥接”到Objective-C来进行- 代码当然也很简单- var numString = &quo ...
- USACO 完结的一些感想
其实日期没有那么近啦……只是我偶尔还点进去造成的,导致我没有每一章刷完的纪念日了 但是全刷完是今天啦 讲真,题很锻炼思维能力,USACO保持着一贯猎奇的题目描述,以及尽量不用高级算法就完成的题解……例 ...
- 2017-2018 ACM-ICPC, NEERC, Moscow Subregional Contest B - Byteland Trip dp
B - Byteland Trip 题目大意:给你一个由'<' 和 '>'组成的串, 如果在'<' 只能前往编号比它小的任意点, 反之只能前往比它大的任意点,问你能遍历所有点 并且每 ...
- hdoj2544 最短路(Dijkstra || Floyd || SPFA)
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=2544 思路 最短路算法模板题,求解使用的Dijkstra算法.Floyd算法.SPFA算法可以当做求解 ...