rtpengine-recording-daemon as rtpengine user?

237 views
Skip to first unread message

Juha Heinanen

unread,
Apr 2, 2022, 8:31:46 AM4/2/22
to rtpengine
I noticed that in mr10.4, rtpengine-daemon now runs by default as rtpengine user (debian/ngcp-rtpengine-daemon.default), but rtpengine-recording-deamon still defaults to root user (debian/ngcp-rtpengine-recording-daemon.default).  Could that too be changed to rtpengine user or must it be the user be root?

Richard Fuchs

unread,
Apr 2, 2022, 9:26:55 AM4/2/22
to rtpe...@googlegroups.com
On 02/04/2022 08.31, [EXT] 'Juha Heinanen' via rtpengine wrote:
I noticed that in mr10.4, rtpengine-daemon now runs by default as rtpengine user (debian/ngcp-rtpengine-daemon.default), but rtpengine-recording-deamon still defaults to root user (debian/ngcp-rtpengine-recording-daemon.default).  Could that too be changed to rtpengine user or must it be the user be root?

How are you starting the services? What's in the .default file shouldn't really matter if everything is started through systemd, and we already changed the user for the recording daemon there: https://github.com/sipwise/rtpengine/blob/mr10.4/debian/ngcp-rtpengine-recording-daemon.service#L15

Are you still on SysV init?

Cheers

Juha Heinanen

unread,
Apr 2, 2022, 9:38:54 AM4/2/22
to Richard Fuchs, rtpe...@googlegroups.com
'Richard Fuchs' via rtpengine writes:

> How are you starting the services? What's in the .default file shouldn't
> really matter if everything is started through systemd, and we already
> changed the user for the recording daemon there:
> https://github.com/sipwise/rtpengine/blob/mr10.4/debian/ngcp-rtpengine-recording-daemon.service#L15
>
> Are you still on SysV init?

No, I'm using rtpengine as it is on github. I was comparing the debian
.default files and didn't realize that they don't count anymore
regarding the user.

I checked and both now run as rtpengine user as they should:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
rtpengi+ 592 0.0 0.9 273748 38748 ? SLsl 15:47 0:00 /usr/sbin/rtpengine-recording -f -E --no-log-timestamps --pidfile /run/rtpengine-recording/rtp
engine-recording-daemon.pid --config-file /etc/rtpengine/rtpengine-recording.conf
rtpengi+ 767 0.0 0.8 1201392 33804 ? SLsl 15:47 0:00 /usr/sbin/rtpengine -f -E --no-log-timestamps --pidfile /run/rtpengine/rtpengine-daemon.pid --
config-file /etc/rtpengine/rtpengine.conf

-- Juha
Reply all
Reply to author
Forward
0 new messages