NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
/etc/rd.d/ script execution
Hi, I start music player daemon MPD via /etc/rc.d/mpd script, which I pasted
below. Sometimes when the CPU load is high, the music skips. What I would
like to do is start the daemon with the following command, so that it has the
highest scheduling priority
schedctl -P63 -C SCHED_RR /opt/pkg/bin/mpd
How do I run that from the script below? I'm not very familiar with NetBSD
rc.d system. I tried putting something like
command="schedctl -P63 -C SCHED_RR /opt/pkg/bin/${name}"
but it doesn't seem to work...
#!/bin/sh
#
# $NetBSD: mpd.sh,v 1.2 2004/11/11 03:15:41 simonb Exp $
#
# PROVIDE: mpd
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="mpd"
rcvar=$name
command="/opt/pkg/bin/${name}"
required_files="/opt/pkg/etc/mpd.conf"
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index