#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# OceGraphs Authors
# https://www.ocelot.cascaded.net/~anton/ocegraphs/
#
# Wrapper for starting newstailer
# Rather chiark-specific.  You might replace with-lock-ex with flock(1).
#
# Copyright (C) 2010, 2012 Ian Jackson
#
# Author: Ian Jackson <ijackson@chiark.greenend.org.uk>

set -e
log=/var/log/news/news.notice
exec with-lock-ex -q data/news/lock ./newstailer -D -Odata/news/ $log.0 $log
