mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
PopCorn: avoid double runs, use snooze timefile
This commit is contained in:
parent
545d6024eb
commit
cacef861d9
2 changed files with 7 additions and 3 deletions
|
@ -6,5 +6,9 @@
|
||||||
: ${PORT:=8001}
|
: ${PORT:=8001}
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
|
|
||||||
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT
|
[ ! -d /var/cache/popcorn ] && mkdir -p /var/cache/popcorn
|
||||||
|
chown _popcorn:_popcorn /var/cache/popcorn
|
||||||
|
|
||||||
|
exec chpst -u _popcorn:_popcorn snooze -s 1d -t /var/cache/popcorn/snooze -- sh -c \
|
||||||
|
"popcorn --server $SERVER --port $PORT; touch /var/cache/popcorn/snooze"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'PopCorn'
|
# Template file for 'PopCorn'
|
||||||
pkgname=PopCorn
|
pkgname=PopCorn
|
||||||
version=0.4
|
version=0.4
|
||||||
revision=11
|
revision=12
|
||||||
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…
Add table
Reference in a new issue