Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to run polipo as daemon with user polipo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rainer
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 251
Location: Bonn, Germany

PostPosted: Sun Mar 25, 2012 7:23 am    Post subject: [SOLVED] How to run polipo as daemon with user polipo? Reply with quote

I want to use polipo as a local proxy. Everything fine so far, but when I start polipo as a daemon via
Code:
/etc/init.d/polipo start

it runs as root. So I better not add it to the startup script via
Code:
rc-update add polipo default


But why?
This code snippet from /etc/init.d/polipo is supposed to make it run as polipo, isn't it?
Code:
        start-stop-daemon --start --user polipo \
                --background --pidfile /var/run/polipo.pid --make-pidfile \
                        --exec /usr/bin/polipo


What can I do to have polipo starting from boot time as its own user?

Thanks,
Rainer

EDIT:

I'd better done this before - actually trying...
I added polipo to the boot level default, rebooted - and the user was polipo when I started again!

I didn't imagine that invoking /etc/init.d/polipo start from a root terminal would have a different effect from startup call.

Sorry,
Rainer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum