PopCorn: add logging
This prevents PopCorn from printing warnings to tty1 because of a (not yet) available network connection. [skip ci]
This commit is contained in:
parent
2e82f8a34e
commit
cc07b967a8
3 changed files with 4 additions and 1 deletions
2
srcpkgs/PopCorn/files/popcorn/log/run
Normal file
2
srcpkgs/PopCorn/files/popcorn/log/run
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec vlogger -t popcorn
|
|
@ -5,5 +5,6 @@
|
||||||
: ${SERVER:=popcorn.voidlinux.org}
|
: ${SERVER:=popcorn.voidlinux.org}
|
||||||
: ${PORT:=8001}
|
: ${PORT:=8001}
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
|
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
|
||||||
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
|
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'PopCorn'
|
# Template file for 'PopCorn'
|
||||||
pkgname=PopCorn
|
pkgname=PopCorn
|
||||||
version=0.4
|
version=0.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=github.com/the-maldridge/popcorn
|
go_import_path=github.com/the-maldridge/popcorn
|
||||||
go_package="${go_import_path}/cmd/popcorn
|
go_package="${go_import_path}/cmd/popcorn
|
||||||
|
|
Loading…
Reference in a new issue