daemon-windows: Ability to handle windows service calls.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 17 Jan 2014 00:16:24 +0000 (16:16 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 4 Feb 2014 16:30:00 +0000 (08:30 -0800)
commitfda546bd0b1737bf3beeef69b32d0df6dc9e0ad4
treed3cc38533bcde499f941d932f74305cc1417c529
parent80e448834d1f57131c0751e299d1c7cef9761210
daemon-windows: Ability to handle windows service calls.

The following code does not add any users yet.

The visioned workflow that this piece of code should work with is:
* Create a windows service through a startup script with
a tool like 'sc'
ex:  sc create ovsdb-server binpath=
 "C:\openvswitch\usr\sbin\ovsdb-server.exe -vconsole:off
-vsyslog:off -vfile:info --remote=ptcp:6632:127.0.0.1 --log-file
--service-monitor --service"

* Start the service from the startup script.
ex: sc start ovsdb-server

* Terminate the service during shutdown process.
ex: sc stop ovsdb-server

* Abrupt termination will restart the service.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/automake.mk
lib/daemon-windows.c [new file with mode: 0644]
lib/daemon.c
lib/daemon.h
lib/daemon.man
lib/service-syn.man [new file with mode: 0644]
lib/service.man [new file with mode: 0644]
lib/util.c