summaryrefslogtreecommitdiff
blob: 758b0c8101e8e6b3fbdcc1e47a7a7c7df2ade433 (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
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command="/usr/bin/gerbera"
command_args="--logfile ${GERBERA_LOGFILE}
	      --config ${GERBERA_CONFIG}
	      --port ${GERBERA_PORT}
	      ${GERBERA_OPTIONS}"
command_user="gerbera:gerbera"
command_background=true
start_stop_daemon_args="--wait 500"
retry="10"
pidfile="/run/${RC_SVCNAME}.pid"

depend() {
	need net
}

start_pre() {
	checkpath --owner "gerbera:gerbera" \
			  --mode 0644 \
			  --file "${GERBERA_LOGFILE}"
}