This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Dumpcap as a service

0

I am looking to run dumpcap as a service. I tried using sc create but the service doesn't start.

asked 22 Dec '14, 13:24

wireshark_r's gravatar image

wireshark_r
11223
accept rate: 0%

Do you have a specific end goal that you're trying to reach by running it as a service? If you need to run long captures in automation, there are several useful arguments within the dumpcap binary which can be combined with cron to make it service-like depending on what you're trying to do.

(22 Dec '14, 14:23) Quadratic

One Answer:

0

dumpcap is not intended to run as a service. Maybe you can use the RunAsService project on Sourceforge to trick it into working though:

http://sourceforge.net/projects/runasservice/

answered 22 Dec '14, 13:27

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%