updates lbrynet download_dir
This commit is contained in:
parent
da4a1d6c03
commit
a9627fbd96
3 changed files with 32 additions and 1 deletions
15
docs/setup/conf/lbrynet/lbrynet.service.example
Normal file
15
docs/setup/conf/lbrynet/lbrynet.service.example
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description="LBRYnet daemon"
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment="HOME=/home/lbry"
|
||||||
|
ExecStart=/opt/lbry/lbrynet start
|
||||||
|
User=lbry
|
||||||
|
Group=lbry
|
||||||
|
Restart=on-failure
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
16
docs/setup/conf/lbrynet/lbrynet.service.template
Normal file
16
docs/setup/conf/lbrynet/lbrynet.service.template
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description="LBRYnet daemon"
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
# Change environment to /home/{{USERNAME}}
|
||||||
|
[Service]
|
||||||
|
Environment="HOME=/home/{{USERNAME}}"
|
||||||
|
ExecStart=/opt/lbry/lbrynet start
|
||||||
|
User={{USERNAME}}
|
||||||
|
Group={{USERNAME}}
|
||||||
|
Restart=on-failure
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -153,7 +153,7 @@ module.exports = {
|
||||||
Date.now()
|
Date.now()
|
||||||
);
|
);
|
||||||
if (data.result) {
|
if (data.result) {
|
||||||
resolve(data.result.download_directory);
|
resolve(data.result.download_dir);
|
||||||
} else {
|
} else {
|
||||||
return new Error(
|
return new Error(
|
||||||
'Successfully connected to lbry daemon, but unable to retrieve the download directory.'
|
'Successfully connected to lbry daemon, but unable to retrieve the download directory.'
|
||||||
|
|
Loading…
Reference in a new issue