aboutsummaryrefslogtreecommitdiffstats
path: root/main/oidentd/oidentd.initd
blob: a1a880ba973e7eaa880a3681d3692320afd58e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run

# Upper case variables are for backward compatibility only.
: ${cfgfile:="/etc/oidentd.conf"}
: ${user:=${USER:-"nobody"}}
: ${group:=${GROUP:-"nobody"}}

command="/usr/sbin/oidentd"
command_args="
	--foreground
	--config $cfgfile
	--user $user
	--group $group
	${command_args:-$OPTIONS}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"

required_files="$cfgfile"

depend() {
	need net
	after firewall
}