
Code: Select all
/etc/init.d/mldonkey startCode: Select all
lsof -P -T -p MLNET_PIDCode: Select all
/etc/init.d/mldonkey stopCode: Select all
env HOME=${BASEDIR} start-stop-daemon --quiet --start -c ${USER} \
-r ${BASEDIR}/${SUBDIR}/ \
-x /usr/bin/mlnet &>${LOG} &
Thanks bludger, your method is working fine here!bludger wrote:The method to chroot mldonkey outlined in the link I gave did not work exactly, so I am posting the method I successfully followed.
One problem, thoughindanet wrote:Thanks bludger, your method is working fine here!
Code: Select all
(* Commands that you are allowed to be call from the interface. These
commands should short, so that the core is not blocked more than necessary. *)
allowed_commands = [
(df, "df -h");
(ls, "ls incoming");]Code: Select all
...
(ls, "ls /incoming");]
Code: Select all
...
(ls, "ls ./incoming");]
Code: Select all
MLdonkey command-line:
> ! ls
exception [Invalid_argument("Filename.temp_file: temp dir nonexistent or full")]Code: Select all
(* The directory where temporary files should be put *)
temp_directory = "./temp"
(* The directory where downloaded files should be moved after commit *)
incoming_directory = "./incoming"
Code: Select all
bin:
total 593
-rwxr-xr-x 1 p2p users 606028 Oct 18 20:02 bash
lib:
total 3270
-rwxr-xr-x 1 p2p users 92320 Oct 18 19:56 ld-2.3.4.so
-rwxr-xr-x 1 p2p users 92320 Oct 18 20:02 ld-linux.so.2
-rwxr-xr-x 1 p2p users 1198076 Oct 18 19:56 libc-2.3.4.so
-rwxr-xr-x 1 p2p users 1198076 Oct 18 20:02 libc.so.6
-rwxr-xr-x 1 p2p users 10268 Oct 18 19:56 libdl-2.3.4.so
-rwxr-xr-x 1 p2p users 10268 Oct 18 20:02 libdl.so.2
-rwxr-xr-x 1 p2p users 156360 Oct 18 19:56 libm-2.3.4.so
-rwxr-xr-x 1 p2p users 156360 Oct 18 19:53 libm.so.6
-rwxr-xr-x 1 p2p users 15560 Oct 18 19:56 libnss_dns-2.3.4.so
-rwxr-xr-x 1 p2p users 37296 Oct 18 19:56 libnss_files-2.3.4.so
-rwxr-xr-x 1 p2p users 73048 Oct 18 19:57 libpthread-2.3.4.so
-rwxr-xr-x 1 p2p users 73048 Oct 18 19:54 libpthread.so.0
-rwxr-xr-x 1 p2p users 68088 Oct 18 19:57 libresolv-2.3.4.so
-rwxr-xr-x 1 p2p users 67160 Oct 18 19:53 libz.so.1
-rwxr-xr-x 1 p2p users 67160 Oct 18 19:57 libz.so.1.2.1
usr/bin:
total 3291
-rwxr-xr-x 1 p2p users 336 Oct 18 19:59 mldonkey
-rwxr-xr-x 1 p2p users 3362556 Oct 18 20:00 mlnet