LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   aria2c does not start as daemon? (https://www.linuxquestions.org/questions/linux-software-2/aria2c-does-not-start-as-daemon-4175632367/)

shams 06-21-2018 06:15 AM

aria2c does not start as daemon?
 
I want to start the aria2c as daemon in the ubuntu 18.04, but didn't start as daemon to use web gui clients, this is ~/.aria2/aria2.conf
Code:

daemon=true
continue
dir=/home/me/Downloads/
file-allocation=falloc
log-level=warn
check-certificate=false
max-connection-per-server=8
summary-interval=120
max-concurrent-downloads=3
enable-dht=false
http-auth-challenge=true
save-session=/homr/me/.aria2/aria.save
input-file=/home/me/.aria2/input.conf
log=/var/log/aria2/aria.log
max-overall-download-limit=0
min-split-size=5M
enable-http-pipelining=true
enable-rpc=true
rpc-listen-all=true
# rpc-user=rpcuser
# rpc-passwd=rpcpass
listen-port=6800
# dht-listen-port=6800
seed-ratio=1.0
max-overall-upload-limit=5k
max-upload-limit=2K
ftp-pasv=true
file-allocation=none
# on-download-complete=exit
disable-ipv6=true
disk-cache=25M
timeout=600
retry-wait=30
max-tries=50

I run it with this option but still does not start as daemon:
Quote:

/usr/bin/aria2c -D -c --conf-path=/home/me/.aria2/aria2.conf --enable-rpc --rpc-listen-all --rpc-listen-port=6800 --log=/var/log/aria2/aria.log
after running the above command check the process:
Code:

$ ps aux | grep aria2c
me    23196  0.0  0.0  17576  1120 pts/0    S+  15:41  0:00 grep --color=auto aria2c

and there is no log dir aria2 in /var/log

scasey 06-22-2018 10:12 AM

From the man page; emphasis added
Code:

-D, --daemon[=true|false]
    Run as daemon. The current working directory will be changed to / and standard input,
standard output and standard error will be redirected to /dev/null. Default: false



All times are GMT -5. The time now is 08:51 PM.