Brian Webster Kevin Tong Kevin Tong 3, 1 1 gold badge 15 15 silver badges 12 12 bronze badges. Best service manager ever. This is absolutely great, I wish I could accept this answer instead of the first one, :- — German Latorre. I can run Dropbox as a service on the server. Absolutely a non-sucking tool!
Do the exe file must be a windows service project, to be able to work with nssm or it can be a normal exe file? Show 4 more comments. Extending Kevin Tong answer. Correct Syntax nssm. If you later want to remove it, use nssm. I'm assuming the reference to nginx is because that's the particular program you want to run as a service? Until I saw hmd's comment above I thought you were trying to help by implying that nginx was a required dependency to install or something Just pointing out that the example is inconsistent and potentially misleading.
A simple "Suppose you wanted to install nginx as a service, then it would look like this:" would help. The command will work without it as well. It is optional parameter if you want to supply service name from command prompt.
When I try to use nssm my Windows Forms up is running but form is not shown Its running your application as Windows service, most they are for backend. Also more informations you can check here: nssm. Tobias Kienzler Ben Johnson 73 1 1 silver badge 4 4 bronze badges. Masson A. Masson 1, 3 3 gold badges 26 26 silver badges 34 34 bronze badges. Sergey Vaulin Sergey Vaulin 4 4 silver badges 15 15 bronze badges.
If the child process dies, Service Manager automatically restarts it. CubicleSoft CubicleSoft 1, 15 15 silver badges 18 18 bronze badges. Tomeg Tomeg 4, 2 2 gold badges 10 10 silver badges 9 9 bronze badges. The Overflow Blog.
Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. If both --defaults-file and --local-service are given following the service name, they can be in any order. For a MySQL server that is installed as a Windows service, the following rules determine the service name and option files that the server uses:. If the service-installation command specifies no service name or the default service name MySQL following the --install option, the server uses the service name of MySQL and reads options from the [mysqld] group in the standard option files.
If the service-installation command specifies a service name other than MySQL following the --install option, the server uses that service name. It reads options from the [mysqld] group and the group that has the same name as the service in the standard option files.
This enables you to use the [mysqld] group for options that should be used by all MySQL services, and an option group with the service name for use by the server installed with that service name.
If the service-installation command specifies a --defaults-file option after the service name, the server reads options the same way as described in the previous item, except that it reads options only from the named file and ignores the standard option files. Here, the default service name MySQL is given after the --install option. If no --defaults-file option had been given, this command would have the effect of causing the server to read the [mysqld] group from the standard option files.
However, because the --defaults-file option is present, the server reads options from the [mysqld] option group, and only from the named file. On Windows, if the server is started with the --defaults-file and --install options, --install must be first.
Otherwise, mysqld. However, if there are any changes to that default setup for example, changes to the user who runs the service or to the mentioned user variables, or the --tmpdir option has been used to put the temporary directory somewhere else , the MySQL service might fail to run because write access to the temporary directory has not been granted to the proper user.
After a MySQL server instance has been installed as a service, Windows starts the service automatically whenever Windows starts. SC and NET commands are not case-sensitive. When run as a service, mysqld has no access to a console window, so no messages can be seen there.
If mysqld does not start, check the error log to see whether the server wrote any messages there to indicate the cause of the problem. I've run it many times made a complete cleanup of all evidences of OneDrive including Reg keys etc.
I've not faced similar problems, and unfortunately debugging Onedrive was intentionally made hard isn't easy. Try verifying step by step to try to locate what goes wrong:. Before you attempt to run it as a service, is the Onedrive application correctly working in the first place when logged in as user XYZ? It should still be working. Then try to reboot the PC. Before you log in as any user, attempt to verify if the Onedrive service is still working.
Filezilla as a service is an excellent method to test. Then try to log in as any user, and verify it's still working. If it's not working, there's probably an Autostarting Onedrive application that needs to have autostart disabled. Note: This may have screwed up the settings of the service, Disable it and start over. Result, after minutes there is no more sync via OneDrive.
Skip to content. Sign in Sign up. Instantly share code, notes, and snippets. Last active Nov 9, Code Revisions 2 Stars 4 Forks 3. Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. How to set up OneDrive. Onedrive as a Windows Service. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below.
To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters.
Copy link. Again, thank you for your excellent work! Awesome work and thanks once again. Working great for me on WS I'll be looking forward to hearing about your findings. Working just fine on Windows Server Totally forgot about that.
Try verifying step by step to try to locate what goes wrong: Before you attempt to run it as a service, is the Onedrive application correctly working in the first place when logged in as user XYZ? Good luck. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.
Flemming Steffensen, , For our automatic build setup, we needed to fetch some files off a Sharepoint Library. Sharepoint allows if configured so Lists and Libraries to be synchronized to a local folder by using the OneDrive application.
However, the OneDrive application is started when a user logs in, and in an automated build setup, this never happens. The solusion were to disable the normal auto-start feature of OneDrive, and then install it as a service, and making sure the. Edit February
0コメント