Oleg Nenashev
0c20961c21
Merge pull request #82 from oleg-nenashev/issue-55
...
Better diagnosis in install and uninstall commands
2015-02-03 00:07:59 +03:00
Oleg Nenashev
95c9c23f59
Merge pull request #81 from oleg-nenashev/winsw-help-commands
...
Add "version" and "help", handle unsupported commands
2015-02-03 00:07:40 +03:00
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
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
Nicholas Carpenter
57b6d2ad48
Add ability to set startup type to XML file
2015-01-31 22:26:03 -05: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
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
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
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
Daniel Beck
220eff2ac3
[FIXED JENKINS-10547] Don't fail fatally when unable to log event
2014-09-07 01:45:26 +02:00
Kohsuke Kawaguchi
d0d4266af2
Cherry picking a portion of
...
602d473d78
2014-05-11 09:39:47 -07:00
Kohsuke Kawaguchi
e8036488c8
Moved P/Invoke wrappers to other files
2014-04-01 14:28:03 -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
a4ee776bcc
Added priority support
...
Also improved the test harness a bit.
2014-01-08 22:33:08 -08:00
Kohsuke Kawaguchi
0ee22abe8c
Propagate abnormal termination to Windows SCM.
...
This will enable it to restart the service based on policies.
2014-01-08 21:36:10 -08:00
Kohsuke Kawaguchi
ae1bc43cff
Making Ctrl+C the default behaviour
...
also making the timeout customizable, plus documentation
2014-01-08 21:27:53 -08:00
Ed Frey
1ed045b817
Add option to send a SIGINT to the process being wrapped
2014-01-02 14:04:20 -05:00
The LateRooms Group
7aa4018451
Read username/password & working dir from XML
...
It is possible to specify the useraccount (and password) that the
service will run as. In addition, the working directory for the service
can be supplied.
2013-07-17 13:18:04 +01:00
Kohsuke Kawaguchi
c863e7fc33
A bit of refactoring to avoid duplication and readability.
...
Still needs to verify that this doesn't cause any regressions.
2013-07-02 10:41:52 -07:00
Kohsuke Kawaguchi
87f62cfab4
Merge branch 'master' of github.com:slide/winsw
2013-07-02 10:32:31 -07:00
Alex Earl
b86d5c13b0
Removing unused code
2013-07-01 10:01:38 -07:00
Alex Earl
c99fec03d1
Adding option to install with a specific username/password for the service.
2013-07-01 09:59:41 -07:00
toruuetani
c50bb61b7b
Kill process with its children
2013-06-21 22:43:45 +09:00
Kohsuke Kawaguchi
0eaa554ed3
Integrated failure action.
...
Also improved the timespan support.
Defaulting to ms for backward compatibility.
2013-04-20 18:08:35 -07:00
Kohsuke Kawaguchi
becb2d249a
now it works
2013-04-20 17:38:49 -07:00
Kohsuke Kawaguchi
4caa17f921
my first shot
2013-04-20 17:04:57 -07:00
teddy
39891488bf
change the wrapped process working directory
...
set the working directory of the wrapped process with the location of the winsw executable, or the path defined in the configuration file.
2013-03-19 01:53:52 +01:00
Kohsuke Kawaguchi
9118145a4b
Manually applied patch from comment #5 in
...
http://kenai.com/bugzilla/show_bug.cgi?id=4246
2011-10-27 10:25:26 -07:00
Kohsuke Kawaguchi
91382d4851
Added file sharing mode and protected thread body.
2010-12-27 09:03:40 -08:00
Kohsuke Kawaguchi
8d1deb2ae4
Splitting a file into smaller chunks.
2010-12-27 08:51:48 -08:00
Kohsuke Kawaguchi
f86f622f0b
improving code to work better in UAC environment
2010-11-17 22:04:49 -08:00
kohsuke_kawaguchi
fb063c16d4
fixed a bug in the log rotation
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@40 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-07-22 18:11:01 +00:00
kohsuke_kawaguchi
edb8ee971f
fixed a compilation problem. Does this mean I committed a broken code?
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@37 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-07-22 00:15:27 +00:00
kohsuke_kawaguchi
eef81d98d0
Quote the path. See http://www.nabble.com/Windows-Service%3A-Error-193%3A-***-is-not-a-valid-Win32-application.-td24586795.html
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@36 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-07-22 00:07:53 +00:00
kohsuke
f6dc186164
added log rotation support
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@35 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-06-11 01:33:02 +00:00
kohsuke
07d017ed3e
bug fix
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@32 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-02-13 20:16:15 +00:00
kohsuke
5177de8b66
expand environment variables
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@31 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-02-13 19:18:17 +00:00
kohsuke
b8dbc77d7e
Adding a download service. This enables self-updating services
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@30 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-02-13 19:01:06 +00:00
jjasper4
3b3591d66f
make settings configurable
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@29 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-02-08 19:50:19 +00:00
jjasper4
32860b8155
should be while !process.WaitForExit of course
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@28 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-31 14:04:12 +00:00
jjasper4
3b4052df0d
correct currentState required/test beep on success
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@27 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-28 21:28:10 +00:00
jjasper4
54c4a25951
log complete stacktrace
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@26 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-19 22:13:18 +00:00
jjasper4
afb43c58e2
delay shutdown for service to end properly
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@25 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-19 00:41:57 +00:00
jjasper4
7f8ceb3f45
shutdown support
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@24 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-14 21:40:30 +00:00
jjasper4
8fc1277776
unix lf
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@23 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-14 18:55:49 +00:00
jjasper4
cb3cff2dbe
restart service revisited
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@22 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-07 21:13:29 +00:00
jjasper4
d42cf5188c
support different stop executable (for example MySQL)
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@21 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-05 21:58:57 +00:00
jjasper4
fe0ceb5e79
bugfix restart service options
...
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@20 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
2009-01-05 21:40:01 +00:00