Commit Graph

364 Commits (15d3c3b1205784da7ad5c2b197bd1aee647869f6)

Author SHA1 Message Date
Oleg Nenashev 3ae6ffaa47 Add "version" and "help", handle unsupported commands (PR #81)
Changes summary:
* Add "version" and "help" commands
* Return error on the unsupported command
* Add CLITestHelper to simplify the testing of the service CLI
* Add unit-tests for the new functionality

Resolves #78 and #46
Related to #80

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-02-03 00:05:56 +03:00
Oleg Nenashev 11c98da4d6 Merge pull request #73 from oleg-nenashev/winsw-2.0-logging
Migration of logging handlers to log4net (#69)
2015-02-02 10:43:57 +03:00
Oleg Nenashev 98268b24cc Integrate log4net into WinSW, migrate wrapper.log engine
TODOs:
    Migrate EventLogs to log4net
    Delegate exceptions handling to log4net
    Allows setting up log levels from ServiceDescriptor
    (?) Migrate STDERR/STDOUT logs to log4net
    (?) Support XML configurations of log4net loggers

Related to #69

Signed-off-by: Oleg Nenashev o.v.nenashev@gmail.com
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-02-02 10:41:54 +03:00
Oleg Nenashev f33ecb1788 Merge pull request #86 from oleg-nenashev/issue-84
Get rid of extra configurations, fix output destinations
2015-02-02 10:15:30 +03:00
Oleg Nenashev c5fd4a7a05 Get rid of extra configurations, fix output destinations
* Win32 is the only supported configurationdue to Win32 API dependencies
* Debug and Release now output the data to different folders

Fixes #84

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-02-01 17:31:13 +03:00
Oleg Nenashev d430642769 Merge pull request #77 from ebsco/configfilesearchfix3
Fix null exception and throw a FileNotFoundException if xml file is neve...
2015-02-01 15:55:09 +03:00
Oleg Nenashev 804691e95f Better diagnosis in install and uninstall commands
* install - Fail the installation if the service exists
* uninstall - Print warning if the service does not exist

Resolves #55

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-02-01 15:10:00 +03:00
Oleg Nenashev 51e64d1deb Merge pull request #76 from ebsco/pathingfix
Fix needing to call install command from same directory.
2015-02-01 14:55:33 +03:00
Oleg Nenashev 072af36998 Merge pull request #75 from ebsco/FixStartupMode
Add ability to set startup type to XML file
2015-02-01 14:53:55 +03:00
Nicholas Carpenter 91ed4b3184 Fix null exception and throw a FileNotFoundException if xml file is never found 2015-01-31 23:33:27 -05:00
Nicholas Carpenter 76de18b744 Fix needing to call install command from same directory. 2015-01-31 22:51:44 -05:00
Nicholas Carpenter 57b6d2ad48 Add ability to set startup type to XML file 2015-01-31 22:26:03 -05:00
Oleg Nenashev 912e6ddd4f [FIXED #72] - Rework the solution to use NuGet package manager
* Use NuGet to retrieve package dependencies. Resolves #72
* Get rid of the built-in NUnit library in winswTests

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 15:12:46 +03:00
Oleg Nenashev 51d1a8e8af Rework the project structure.
* move WinSW core to a separate folder
* create scr on the top level to store all the stuff inside
Related to #66

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 14:40:52 +03:00
Oleg Nenashev f4c11569cb .gitignore - All user settings
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 12:51:12 +03:00
Oleg Nenashev b95f6f6d5c Refactoring: Null checks for getters in ServiceDescriptor (broken XmlDocument)
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 12:38:48 +03:00
Oleg Nenashev 9291ac911c Refactoring - minor cleanup of Main.cs
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 12:18:25 +03:00
Oleg Nenashev 6fcebfa0e2 Refactoring: cleanup the codestyle, convert vars to properties, etc.
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-31 02:26:28 +03:00
Oleg Nenashev 0105fe5214 Merge pull request #70 from ebsco/LogonAsAService
Adding logon as a service right to user account specified in configuration
2015-01-30 23:16:39 +03:00
Nicholas Carpenter 4ce20f5533 Adding logon as a service right to user account specified in configuration 2015-01-30 14:32:10 -05:00
Oleg Nenashev 92459d72dd Descibe the build environment
Follow-up to #62
Also resolves #5
2015-01-28 16:40:12 +03:00
Oleg Nenashev e2246877b0 Merge pull request #62 from kohsuke/MVS2013_Port
Port WinSW to Visual Studio Community 2013
2015-01-26 12:52:50 +03:00
Oleg Nenashev 9f9ad24b16 Next version is 1.17 2015-01-24 01:34:08 +03:00
Oleg Nenashev 005a1fd5b5 Use Release version instead of Debug one.
Resolves https://github.com/kohsuke/winsw/issues/63

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-24 01:23:54 +03:00
Oleg Nenashev 99fb13d41a Switch to the built-in signing procedure.
Each developer will have to specify his own winsw_cert.pfx in the project root.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-23 15:24:38 +03:00
Oleg Nenashev 45fba7f974 Migrate the project to http://meetings.jenkins-ci.org/jenkins/2015/jenkins.2015-01-21-19.01.log.html
Related to #56

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2015-01-22 10:14:43 +03:00
Oleg Nenashev 67aa8a143c Merge branch 'XmlFix' of https://github.com/PunMaster/winsw
Conflicts:
	ServiceDescriptor.cs

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2014-11-29 18:04:50 +03:00
Oleg Nenashev b93e08ee8b Merge pull request #53 from oleg-nenashev/PR_47_refactoring
PR #47 - merged version
2014-11-21 13:17:52 +03:00
Oleg Demchenko a2f4c7fc5b Unit tests for PR #47 and minor refactoring
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2014-11-02 14:59:29 +03:00
Oleg Demchenko 9a09af2c17 Properly read StopTimeout from configuration.
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2014-11-02 14:58:52 +03:00
Oleg Demchenko 350fa99749 New option to shutdown parent process first.
Option name = stopparentprocessfirst

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
2014-11-02 14:57:25 +03:00
Oleg Nenashev c4336a4713 Merge pull request #48 from BernhardBerbuir/master
Fixed issue #40
2014-11-02 14:28:12 +03:00
Oleg Nenashev 57ba48100f Merge pull request #50 from eel/fix-failure-reset-period
Use total seconds of TimeSpan for reset period
2014-10-09 22:33:44 +04:00
Ryan Finley 60817bcd7a Fixed XML parsing of TimeSpan elements 2014-10-07 08:50:01 -05:00
Stephen Booher bb847a45f7 Use total seconds of TimeSpan for reset period 2014-10-03 13:46:05 -06:00
Kohsuke Kawaguchi 6080007e82 Merge pull request #49 from daniel-beck/JENKINS-10547
[FIXED JENKINS-10547] Don't fail fatally when unable to log event
2014-10-01 11:47:03 -07:00
Daniel Beck 220eff2ac3 [FIXED JENKINS-10547] Don't fail fatally when unable to log event 2014-09-07 01:45:26 +02:00
BernhardBerbuir 13ef886a6e Fixed issue #40 2014-07-08 13:13:45 +02:00
Kohsuke Kawaguchi d0d4266af2 Cherry picking a portion of
602d473d78
2014-05-11 09:39:47 -07:00
Kohsuke Kawaguchi 6250a2755b Releasing 1.16 2014-04-01 15:41:48 -07:00
Kohsuke Kawaguchi 269f069ee4 Documenting about updating winsw.exe itself 2014-04-01 15:01:15 -07:00
Kohsuke Kawaguchi c32ab2cc79 Grammar fix, I think 2014-04-01 14:32:50 -07:00
Kohsuke Kawaguchi db4906a97c This is the Windows way of expanding variables 2014-04-01 14:31:31 -07:00
Kohsuke Kawaguchi e8036488c8 Moved P/Invoke wrappers to other files 2014-04-01 14:28:03 -07:00
Kohsuke Kawaguchi 2beae94c3f Documenting the self-restarting process 2014-04-01 13:33:01 -07:00
Kohsuke Kawaguchi 5d2c07c4bf Added a command to run 'restart' from another process group.
This allows the service to restart itself.
If we use the regular "restart" command, Windows Service Control
Manager will make sure to kill the entire process group (including
the "winsw.exe restart" itself), preventing the service from getting
restarted.
2014-04-01 13:21:27 -07:00
Kohsuke Kawaguchi 3a74585609 Trapping Ctrl+C handler didn't work.
It made Windows Service Controller pause for a while to give processes a
graceful opportunity to exit, then presumably it timed out and killed
all the processes anyway.
2014-04-01 12:54:29 -07:00
Kohsuke Kawaguchi 0094a33523 Releasing 1.15 2014-04-01 09:23:03 -07:00
Kohsuke Kawaguchi 1198686fdf Documenting the 'none' logging mode 2014-03-31 18:40:15 -07:00
Kohsuke Kawaguchi ff002e8711 Added logger that throws away output 2014-03-31 18:38:50 -07:00