summaryrefslogtreecommitdiff
path: root/app-accessibility/whisper-cpp/files/whisper-cpp.init
blob: 8262b69fd4ce48dc326cd5d7e697244d72c464e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2

supervisor=supervise-daemon
description="Whisper-CPP Service"
command="/usr/bin/whisper-server"
command_args="${command_args} -m ${whisper_model}"
required_files="${whisper_model}"

start_pre() {
        checkpath --directory --owner $command_user --mode 0775 \
                /var/log/$RC_SVCNAME
}