updates lbrynet download_dir #945
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()
|
||||
);
|
||||
if (data.result) {
|
||||
resolve(data.result.download_directory);
|
||||
resolve(data.result.download_dir);
|
||||
} else {
|
||||
return new Error(
|
||||
'Successfully connected to lbry daemon, but unable to retrieve the download directory.'
|
||||
|
|
Loading…
Reference in a new issue