Every stream its own user

Read 4324 times
It's a longshot but worth a try  ;D

Is it possible to run every shoutcast / icecast and every autoDJ script (ices or anything else)
under a different user ? Let me explain.

Now everything is running under a user ccuser. If something crashes or consumes CPU / RAM we don't know who and what is it. Need further analysis.

For example I don't know which users owns these:
ccuser   13294  0.0  0.0      0     0 ?        Z    10:03   0:00 [ices] <defunct>
ccuser   12170  0.0  0.0      0     0 ?        Z    10:00   0:00 [ices] <defunct>

Separating users we can limit, throttle and check the servers easier using for example cgroups or OS like CloudLinux to limit cpu , ram, IO and connections per user.

I'm afraid this wouldn't be possible anyways, because Centova Cast works in it's own chrooted environment. So even if this wasn't a big deal to implement, user-based resource management tools won't work.

Besides, keeping track of which station is using too much cpu is not hard at all, just log the output of ps every few seconds ;)


To know the owner(s) of those zombies you just do:

ps aux | grep 13294
ps aux | grep 12170


Last Edit: February 14, 2015, 02:19:22 pm by Roger