diff options
author | Avinash H. Duduskar | 2021-10-29 22:57:04 +0530 |
---|---|---|
committer | Avinash H. Duduskar | 2021-10-29 22:57:04 +0530 |
commit | 9a561fa271fdc919c9349250a2c720ea10cac3aa (patch) | |
tree | 69b75e5be15d54958d61a310c177b6ced93813a1 | |
parent | 7f785693e7e2b9c58f5a02153b10659552429176 (diff) | |
download | aur-9a561fa271fdc919c9349250a2c720ea10cac3aa.tar.gz |
Update to version v0.5.22. Create livepeer user group to run service
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | environment | 29 | ||||
-rw-r--r-- | livepeer.service | 36 | ||||
-rw-r--r-- | livepeer.sysusers | 1 | ||||
-rw-r--r-- | livepeer.tmpfiles | 2 |
6 files changed, 56 insertions, 22 deletions
@@ -1,6 +1,6 @@ pkgbase = go-livepeer-bin pkgdesc = Official Go binaries of the Livepeer protocol - pkgver = 0.5.21 + pkgver = 0.5.22 pkgrel = 1 url = https://github.com/livepeer/go-livepeer install = go-livepeer.install @@ -10,11 +10,11 @@ pkgbase = go-livepeer-bin provides = go-livepeer-bin conflicts = go-livepeer backup = etc/go-livepeer/environment - source = https://github.com/livepeer/go-livepeer/releases/download/v0.5.21/livepeer-linux-amd64.tar.gz + source = https://github.com/livepeer/go-livepeer/releases/download/v0.5.22/livepeer-linux-amd64.tar.gz source = https://raw.githubusercontent.com/livepeer/go-livepeer/master/LICENSE source = environment source = livepeer.service - sha256sums = aa966e0af5599faf04d1c9334da36f59e3f6007ca23fc0f21c7c2379b998f0e4 + sha256sums = 0c22bb2ea9413966371886673625395e5597ed903dcded51927dee1dd001aa1c sha256sums = c4de4cf3034bc69b6832f22ea3e18957639e41f2ad7d4cfed6919f6e0dbf99ba sha256sums = 33413ab4532e5c1d74a52fb5a41406a494192417daea21c9929e4dc6c731f93c sha256sums = 7b8b296f598825f6190b9bdfeb63fed89e206fca5896c10baf21d08c3307cf84 @@ -2,7 +2,7 @@ pkgname=go-livepeer-bin _pkgname=go-livepeer -pkgver=0.5.21 +pkgver=0.5.22 pkgrel=1 pkgdesc='Official Go binaries of the Livepeer protocol' arch=('x86_64') @@ -16,7 +16,7 @@ source=("https://github.com/livepeer/${_pkgname}/releases/download/v${pkgver}/li "https://raw.githubusercontent.com/livepeer/go-livepeer/master/LICENSE" "environment" "livepeer.service") -sha256sums=('aa966e0af5599faf04d1c9334da36f59e3f6007ca23fc0f21c7c2379b998f0e4' +sha256sums=('0c22bb2ea9413966371886673625395e5597ed903dcded51927dee1dd001aa1c' 'c4de4cf3034bc69b6832f22ea3e18957639e41f2ad7d4cfed6919f6e0dbf99ba' '33413ab4532e5c1d74a52fb5a41406a494192417daea21c9929e4dc6c731f93c' '7b8b296f598825f6190b9bdfeb63fed89e206fca5896c10baf21d08c3307cf84') diff --git a/environment b/environment index 172a186e93a8..e1de245e527b 100644 --- a/environment +++ b/environment @@ -1,11 +1,18 @@ -ethaddr=0x1a00000000000000000000000000000000000000 -ethurl=https://mainnet.infura.io/v3/00000000000011111111110000000000 -ethpass=mywalletpassword -maxgas=40000000000 -unitprice=800 -serviceaddr=my.livepeer.node:8935 -sessions=6 -cliaddr=192.168.10.1:7935 -reward=false -monitor=false -nvidia=all +# Set the command-line arguments to pass to the server. +ARGS="-v 4 \ + -nvidia all \ + -transcoder \ + -reward=false \ + -orchestrator \ + -monitor=false \ + -maxSessions 16 \ + -network mainnet \ + -pricePerUnit 800 \ + -autoAdjustPrice=false \ + -blockPollingInterval 30 \ + -maxGasPrice 52000000000 \ + -serviceAddr my.livepeernode.com:8935 \ + -orchSecret=/var/lib/livepeer/orchestrator_password.txt \ + -ethAcctAddr 0x1a00000000000000000000000000000000000000 \ + -ethPassword /var/lib/livepeer/ethereum_wallet_password.txt \ + -ethUrl https://mainnet.infura.io/v3/00000000000011111111110000000000" diff --git a/livepeer.service b/livepeer.service index c25d556c872d..dfae8bed2c2f 100644 --- a/livepeer.service +++ b/livepeer.service @@ -4,14 +4,38 @@ After=network.target Wants=network-online.target [Service] -Restart=always +User=livepeer +Group=livepeer Type=simple EnvironmentFile=/etc/go-livepeer/environment -ExecStart=/usr/bin/livepeer -network mainnet -orchestrator -transcoder \ - -maxSessions $sessions -cliAddr $cliaddr -nvidia $nvidia -ethAcctAddr $ethaddr \ - -ethPassword $ethpass -ethUrl $ethurl -pricePerUnit $unitprice \ - -serviceAddr $serviceaddr -maxGasPrice $maxgas -reward=$reward -monitor=$monitor +ExecStart=/usr/bin/livepeer $ARGS +ExecStop=/usr/bin/kill --signal SIGTERM $MAINPID +ExecReload=/usr/bin/kill --signal SIGUSR1 $MAINPID + +Restart=on-failure +RestartSec=1 + +ProtectHome=yes +ProtectClock=yes +PrivateDevices=yes +ProtectHostname=yes +NoNewPrivileges=yes +ProtectSystem=strict +RestrictRealtime=yes +RestrictSUIDSGID=yes +ProtectKernelLogs=yes +RestrictNamespaces=yes +ProtectKernelModules=yes +ProtectControlGroups=yes +ProtectKernelTunables=yes +SystemCallErrorNumber=EPERM +ReadOnlyPaths=/etc/go-livepeer +SystemCallArchitectures=native +SystemCallFilter=@system-service +AmbientCapabilities=CAP_NET_BIND_SERVICE +CapabilityBoundingSet=CAP_NET_BIND_SERVICE +ReadWritePaths=/var/cache/livepeer /var/lib/livepeer [Install] -WantedBy=multi-user.target +WantedBy=default.target diff --git a/livepeer.sysusers b/livepeer.sysusers new file mode 100644 index 000000000000..9379c8bc1b58 --- /dev/null +++ b/livepeer.sysusers @@ -0,0 +1 @@ +u livepeer - "Livepeer User" /var/lib/livepeer diff --git a/livepeer.tmpfiles b/livepeer.tmpfiles new file mode 100644 index 000000000000..01cf1ab34eca --- /dev/null +++ b/livepeer.tmpfiles @@ -0,0 +1,2 @@ +d /var/cache/livepeer 0755 livepeer livepeer - +d /var/lib/livepeer 0750 livepeer livepeer - |