Thank you guys.
first of I am still learning about these init script so please pardon advanced beginner questions
I found the script in a reddit post Here
with the systemd script
[Unit]
Description=Music Player Daemon
After=network.target sound.target
[Service]
User=mpd
ExecStart=/usr/bin/mpd --no-daemon
LimitRTPRIO=50
LimitRTTIME=-1
ControlGroup=cpu:/mpd
ControlGroupAttribute=cpu.rt_runtime_us 500000
[Install]
WantedBy=default.target
and the runit on
#!/bin/sh
MPDCONF=/etc/mpd.conf
exec mpd --stdout --no-daemon $MPDCONF
If I understand correctly it should look like.
#!/sbin/openrc-run
name=mpd
command="mpd --stdout /home/{user}/.config/mpd/mpd.conf"
or
#!/sbin/openrc-run
command=/usr/bin/mpd
pidfile=
name="mpdSysd"
description="Music Player Daemon"
is this correct and where does this file need to go? I believe it is supposed to go here
/etc/init.d