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.
gentoo-overlay/net-p2p/automatic/files/automatic.initd

20 lines
431 B

#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/automatic"
command_args="${OPTS} ${CONFIG}"
description="RSS downloader"
name="RSS downloader"
user="${AUTOMATIC_USER:-automatic}"
group="${AUTOMATIC_GROUP:-automatic}"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
}
start_post() {
pgrep -n "${RC_SVCNAME%%.*}" > "${pidfile}"
}