summaryrefslogtreecommitdiff
blob: 0f024d0b41fdff2f06d621b8f69aefaf6f9f95ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="uptimed - a daemon to record uptime records"
pidfile="/var/run/uptimed/uptimed.pid"
command="/usr/sbin/uptimed"
command_args="-p ${pidfile}"
start_stop_daemon_args="-u uptimed"

start_pre() {
	checkpath -q -d -o uptimed ${pidfile%/*}
}