blob: 3ba80fab8f6e7c238a118d147c86d35a059e5a49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/nuttcp"
command_background="yes"
command_args="${NUTTCP_OPTS}"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
}
start_post() {
pgrep -n "${RC_SVCNAME%%.*}" > "${pidfile}"
}
|