summaryrefslogtreecommitdiff
blob: e0f8bf02c0458ab96549bacb3b7e414f26a4af3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

extra_commands="condrestart"
description_condrestart="Restart the service only if started already"

command="/usr/sbin/${SVCNAME}"
command_args="${OPTIONS}"
pidfile=/var/run/$SVCNAME.pid

depend() {
	need localmount
	use logger
}

condrestart() {
	service_started && restart
}