Skip to content
sombr edited this page Mar 16, 2013 · 5 revisions

Plan for porting ubic on Windows

(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; register ubic.watchdog as a service using sc)
  • 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.

nssm

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.

Clone this wiki locally