1#!/sbin/openrc-run
2
3name=jellyfin
4description="The Free Software Media System"
5
6command=/usr/bin/jellyfin
7command_user=jellyfin:jellyfin
8command_args="--datadir ${datadir} --cachedir ${cachedir} --logdir ${logdir} ${opts}"
9
10depend() {
11 use logger dns
12 need net
13 after firewall
14}
15
16start_pre() {
17 checkpath -d -o $command_user "$datadir"
18 checkpath -d -o $command_user "$cachedir"
19 checkpath -d -o $command_user "$logdir"
20}