summaryrefslogtreecommitdiff
blob: e662c9537aaefe42fc4bd7f6cb099ddd866f7804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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

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

condrestart() {
	service_started && restart
}