Personal APKBUILDs for LXC containers. Probably not useful for anyone else. Probably not following best practices...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
722 B

#!/sbin/openrc-run
name="watchtower"
description="A minimal API for watching web pages for changes, roughly speaks the WebSub protocol"
supervisor=supervise-daemon
WATCHTOWER_USER=${WATCHTOWER_USER:-nobody}
LOGS=/var/log/watchtower.log
LOCAL_DB=${LOCAL_DB:-yes}
LOCAL_BEANSTALKD=${LOCAL_BEANSTALKD:-yes}
supervise_daemon_args="-1 $LOGS -2 $LOGS"
command="/usr/bin/php"
command_args="/usr/share/webapps/watchtower/scripts/watchtower.php"
command_user="$WATCHTOWER_USER:$WATCHTOWER_USER"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
[ "$LOCAL_DB" = "yes" ] && need mariadb
[ "$LOCAL_BEANSTALKD" = "yes" ] && need beanstalkd
}
start_pre() {
checkpath -f "$LOGS" -m 644 -o "$WATCHTOWER_USER:$WATCHTOWER_USER"
}