i don't know.....you could try
sudo sh PMS.sh console
./PS3MediaServerd.sh: line 56: log_daemon_msg: command not found
start-stop-daemon: unrecognized option '--chuid'
Try `start-stop-daemon --help' for more information.
./PS3MediaServerd.sh: line 59: log_end_msg: command not found
#Modify path as per your need..here is default for me..
PATH=/usr/local/sbin/pms:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin
DESC="PS3 UPnP Media Server"
NAME=PMS.sh
#Don't forget to put proper PMS folder name here.
DAEMON=/usr/local/sbin/pms/PMS.sh
# replace userid with the one ,with which access you want to run PMS..This user and group # should exist in /etc/passwd and /etc/group...
PMSUSER=1000
PMSGROUP=100
# Exit if the package is not installed
if [ ! -x "$DAEMON" ]; then
{
echo "Couldn't find $DAEMON"
exit 99
}
fi
#
# Function that starts the daemon/service
#
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
cd /usr/local/sbin/pms/
start-stop-daemon --start --quiet --chuid $PMSUSER:$PMSGROUP --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --chuid $PMSUSER:$PMSGROUP --exec $DAEMON \
|| return 2
}
#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --signal 2 --retry 5 --quiet --name java
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
return "$RETVAL"
}
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) log_end_msg 0 ;;
2) log_end_msg 1 ;;
esac
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) log_end_msg 0 ;;
2) log_end_msg 1 ;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop}" >&2
exit 3
;;
esac
:
martin wrote:./PS3MediaServerd.sh: line 56: log_daemon_msg: command not found
start-stop-daemon: unrecognized option '--chuid'
#!/bin/sh
# PROVIDE: pmsd
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable pmsd:
# pmsd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable pmsd.
# Decide whether or not to run process as root
# If root is not utilized, ensure that chosen user/group:
# exists in /etc/passwd, /etc/group
# has correct permissions to resources
# has correct permissions to log/pid directories
#pmsd_user="${pmsd_user:-"pms"}"
pmsd_user="root"
. /etc/rc.subr
# script variables
# name = service name, used by the rest of the script to build paths/etc.
# install_dir = where pms is located
# command_name = pms' start script
# conf_name = pms' configuration file (not working in *nix currently)
# stop_timeout = how long to wait after HUP to issue -9
# stdout/err_log = standard out and standard error log locations
name="pmsd"
rcvar=`set_rcvar`
install_dir="/usr/local/pms"
command_name="PMS.sh"
conf_name="pms.conf"
pmsd_enable=${pmsd_enable-"NO"}
pmsd_stop_timeout="${pmsd_stop_timeout:-"5"}"
pmsd_stdout_log="${pmsd_stdout_log:-"/usr/local/pms/logs/stdout.log"}"
pmsd_stderr_log="${pmsd_stderr_log:-"/usr/local/pms/logs/stderr.log"}"
pmsd_pidfile="/var/run/${name}/${name}.pid"
. /etc/rc.subr
load_rc_config $name
pidfile="${pmsd_pidfile}"
# Subvert the check_pid_file procname check.
if [ -f $pidfile ]; then
read rc_pid junk < $pidfile
if [ ! -z "$rc_pid" ]; then
procname=`ps -o ucomm= $rc_pid`
fi
fi
if [ -z "$procname" ]; then
procname=nonexistent
fi
required_files="${install_dir}/${conf_name}"
pmsd_command="${install_dir}/${command_name}"
pmsd_config="${install_dir}/${conf_name}"
log_args=">> ${pmsd_stdout_log} \
2>> ${pmsd_stderr_log} "
#actual command to start the java app as a daemon
cd ${install_dir}
command="/usr/sbin/daemon"
flags="-p ${pidfile} -u ${pmsd_user} ${pmsd_command} ${pmsd_conf} ${log_args}"
#functions to call commandline arguments
# start, stop, restart and status
start_cmd="pmsd_start"
start_precmd="pid_touch"
stop_cmd="pmsd_stop"
status_cmd="pmsd_status"
restart_cmd="pmsd_restart"
#create pid file for tracking process
pid_touch ()
{
touch $pidfile
chown $pmsd_user $pidfile
}
#not the actual start, only used for restart
pmsd_start()
{
eval ${command} ${flags}
}
#stop the daemon
pmsd_stop() {
read rc_pid junk < $pidfile
if [ -z "$rc_pid" ]; then
[ -n "$rc_fast" ] && return 0
if [ -n "$pidfile" ]; then
echo "${name} not running? (check $pidfile)."
else
echo "${name} not running?"
fi
return 1
fi
echo "Stopping ${name}."
#kill HUP first to see if it can end gracefully
kill -1 ${rc_pid} 2> /dev/null && echo "Stopped."
#blank pidfile for next start
echo -n > ${pidfile}
}
#wait for kill -hup to finish (implement if pms gains start/stop functionality)
pmsd_wait_max_for_pid() {
_timeout=$1
shift
_pid=$1
_prefix=
while [ $_timeout -gt 0 ] ; do
echo -n ${_prefix:-"Waiting (max $_timeout secs) for PIDS: "}$_pid
_prefix=", "
sleep 2
kill -0 $_pid 2> /dev/null || break
_timeout=$(($_timeout-2))
done
if [ -n "$_prefix" ]; then
echo "."
fi
}
#check daemon status
pmsd_status()
{
read rc_pid junk < $pidfile
if [ $rc_pid ]; then
echo "${name} is running as pid ${rc_pid}."
else
echo "${name} is not running."
fi
}
#attempt a restart
pmsd_restart()
{
pmsd_stop
echo "Starting ${name}."
pmsd_start
}
run_rc_command "$1"
sk33t3r wrote:Now that I got PS3MS started on my linux box I tried to watch a mkv file thats works fine from my windows machine, it says data corrupt so I tried an *.avi it plays fine. Any help would be appreciated.
sk33t3r wrote:Also what do I ned to edit so that only my music, and video directories show up on the PS3 and not every thing??
I can't get transcoding to work at all on FreeBSD.
sk33t3r wrote:I have seen several post refer to PMS.conf, but i dont see that file, there is a WEB.conf which is for web streaming. DoI need to creat a PMS.conf? And this is version 1.04
folders = /disk1/stuff, /disk2/stuff2
hostname =
port = 5010
language = en
thumbnails = true
thumbnail_seek_pos = 1
nbcores = 2
turbomode = false
minimized = false
hidevideosettings = false
usecache = false
charsetencoding = 850
engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux
autoloadsrt = true
avisynth_convertfps = true
avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub\/VobSub instruction if there's any detected srt\/sub\/idx\/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip
transcode_block_multiple_connections = false
tsmuxer_forcefps = true
tsmuxer_preremux_pcm = false
tsmuxer_preremux_ac3 = false
audiochannels = 6
audiobitrate = 384
maximumbitrate = 0
skiploopfilter = false
enable_archive_browsing = false
mencoder_fontconfig = false
mencoder_font =
mencoder_forcefps = false
mencoder_usepcm = false
mencoder_intelligent_sync = true
mencoder_decode =
mencoder_encode = keyint=1:vqscale=1:vqmin=2
mencoder_nooutofsync = true
mencoder_audiolangs = fre,jpn,ger,eng
mencoder_sublangs = fre,eng
mencoder_audiosublangs =
mencoder_subfribidi = false
mencoder_ass_scale = 1.0
mencoder_ass_margin = 10
mencoder_ass_outline = 1
mencoder_ass_shadow = 1
mencoder_noass_scale = 3
mencoder_noass_subpos = 2
mencoder_noass_blur = 1
mencoder_noass_outline = 1
mencoder_subcp = cp1252
mencoder_ass = false
mencoder_disablesubs = false
mencoder_yadif = false
mencoder_scaler = false
mencoder_scalex = 0
mencoder_scaley = 0
ffmpeg = -g 1 -qscale 1 -qmin 2
mencoder_mt = false
sk33t3r wrote:is txMuxeR in your /installdir/linux dir?? and would have MEncoder in the linux dir help with transcoding?
sk33t3r wrote:One last thing, NANO is a much easier editor than vi
Users browsing this forum: Bing [Bot] and 4 guests