18 lines
363 B
Plaintext
18 lines
363 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2018 Hyperbola Project
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="Music Player Daemon service"
|
|
|
|
command="/usr/bin/mpd"
|
|
command_user="mpd"
|
|
|
|
depend() {
|
|
need localmount
|
|
use net netmount nfsmount alsasound sndiod
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner mpd:mpd --mode 0755 /var/run/mpd
|
|
}
|