Skip to content

Commit

Permalink
PopCorn: add logging
Browse files Browse the repository at this point in the history
This prevents PopCorn from printing warnings to tty1 because of a (not
yet) available network connection.
[skip ci]
  • Loading branch information
the-antz authored and the-maldridge committed Jan 12, 2020
1 parent 2e82f8a commit cc07b96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions srcpkgs/PopCorn/files/popcorn/log/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec vlogger -t popcorn
1 change: 1 addition & 0 deletions srcpkgs/PopCorn/files/popcorn/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
: ${SERVER:=popcorn.voidlinux.org}
: ${PORT:=8001}

exec 2>&1
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
2 changes: 1 addition & 1 deletion srcpkgs/PopCorn/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'PopCorn'
pkgname=PopCorn
version=0.4
revision=1
revision=2
build_style=go
go_import_path=github.com/the-maldridge/popcorn
go_package="${go_import_path}/cmd/popcorn
Expand Down

0 comments on commit cc07b96

Please sign in to comment.