-
Notifications
You must be signed in to change notification settings - Fork 29
Windows
sombr edited this page Mar 16, 2013
·
5 revisions
(This is a result of several discussions with @frioux on IRC.)
We need to do three things:
- port daemonization stuff (implement
Ubic::Daemon::OS::Windows
) - customize installation process (custom paths in
Ubic::Admin::Setup
; registerubic.watchdog
as a service usingsc
) - port permissions stuff (dummy
Ubic::Credentials::OS::Windows
will work by now)
Daemonization can be done with Win32::Detached, or using system("sc ...")
if there are any problems with Win32::Detached
.
Alternatively, we could delegate the heavy lifting to http://nssm.cc/. It provides nssm install
and nssm remove
which we could invoke from start_daemon
and stop_daemon
in Ubic::Daemon::OS::Windows
.
We'll have to look for the service using sc
directly on check_daemon
.