blob: 8426f7f47ce95a2ca4945ee556d379502217f5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="IIPImage server"
command="/usr/sbin/iipsrv"
command_args="--bind ${HOST}:${PORT}"
command_user="${USER}:${GROUP}"
command_background=true
extra_started_commands="reload"
description_reload="Empty internal caches"
pidfile="/run/${RC_SVCNAME}.pid"
start_pre()
{
if [ ${LOGFILE} != "syslog" ]; then
# Make sure logfile is writable
checkpath --quiet --file --owner ${command_user} ${LOGFILE}
fi
}
reload()
{
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
|