seriv n00b
Joined: 07 Feb 2003 Posts: 17 Location: maryland
|
Posted: Wed May 21, 2003 9:36 pm Post subject: need help with start-stop-daemon to run chrooted program. |
|
|
Hi All!
I need help, I do not understand details of start-stop-daemon program handling. I want use it to run XMail mail server in chrooted jail from regular user xmail.
I prepared this chrooted jail, copied all setup, executable and library files. When I run this with '-Md' parameter, which is similar to '-d' in sshd, preventing forks and detaching from console, it works fine. The only problem was to bind to privileged ports, I was to switch to unprivileged and use iptable packet redirection to immitate binding on pop3 and smtp ports.
===
start-stop-daemon --start -c xmail -r /chroot/xmail \
--startas /var/MailRoot/bin/XMail --pidfile=/var/run/XMail.pid --\
-Pp 29110 -Sp 29025 -Fp 29079 -Md
===
it works fine, I've checked it's SMTP and POP3 sessions. But if I remove '-Md' parameter from XMail's commandline to fire it as a daemon, it returns immediately without any error message.
Can anybody help?
Thank you,
Sergey. |
|