0

I want to start webrtc2sip from cron:

* * * * * root /taafs/webrtc2sip/webrtc2sip --config=/taafs/webrtc2sip/config.xml >> /var/log/webrtc2sip.log 2>&1

When cron runs, I see output in /var/log/webrtc2sip.log , but

ps aux | grep webrtc2sip 

shows nothing.

When I run command from my root bash it shows absolutely the same output, and shows in ps aux! Also, when I install env from cron to new bash, and start command from this bash, it works(displayed in ps)! So the reason is not environment, but what?

Ivan Borshchov
  • 3,036
  • 5
  • 40
  • 62

1 Answers1

1

I had a similar issue, so I resorted to creating a small patch to make console optional when starting webrtc2sip by adding a new argument, --without-console.

It is documented here: http://marcelog.github.io/articles/starting_webrtc2sip_as_service.html and the patch is available as a gist here: https://gist.github.com/marcelog/47ef364b43c67f9f359d

I hope it helps, it's been working great for me so far, and I use daemontools to supervise the process.

Best!

marcelog
  • 7,062
  • 1
  • 33
  • 46