Run storeSCP as a service

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Regent
Posts: 3
Joined: Sun, 2005-03-20, 01:48

Run storeSCP as a service

#1 Post by Regent »

Hi,

Can we run storescp as a windows service ?

Regards.

Regent.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1446
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

No, unfortunately you cannot - unless you port the application to the Win32 service API by yourself of course.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#3 Post by Jörg Riesmeier »

What about SRVANY.EXE?

meyer
DCMTK Tester
Posts: 3
Joined: Tue, 2004-11-09, 11:34
Location: Bremen, Germany

Re: Run storeSCP as a service

#4 Post by meyer »

NSSM - the Non-Sucking Service Manager nicely does the trick.

nssm.exe is a tiny executable that installs itself as a Windows service and runs whatever process you want as a child process.

To create a service DCMDump7777 running storescp listening on port 7777 and dumping everything to a directory, call:

Code: Select all

nssm install DCMDump7777 "C:\Program Files\ToolsDICOM\dcmtk-3.6.7-win64-dynamic\bin\storescp.exe"
nssm set DCMDump7777 AppParameters "7777 -fe .dcm"
nssm set DCMDump7777 AppDirectory "C:\TMP\DCMDUMP"
I had tried this with srvany before, but stumbled over its shortcomings. nssm is tiny, clean and really gets the job done.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest