Config file ignored since upgrading

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Config file ignored since upgrading

Postby ischemic » Sun May 17, 2009 9:20 pm

I just upgraded to 1.10.5 from whatever version I was current in mid February (when I first installed it) and now it seems to be ignoring my config file. The only thing I have in it is the folders setting as I don't want my flatmate to have to traverse my server's file system when wanting to watch stuff when I'm not around.

I'm running it in headless mode although I did try opening up the gui, saw that the folder appeared there and used the save button. Still no luck. The config file is in the PMS folder (/usr/local/sbin/pms) and my home folder.

Any ideas?
ischemic
 
Posts: 2
Joined: Sun May 17, 2009 9:14 pm

Re: Config file ignored since upgrading

Postby Topguy » Mon May 18, 2009 7:17 pm

Where do you start the PMS from ?

What is the current directory when you start PMS.sh ?
Topguy
 
Posts: 219
Joined: Mon Jan 19, 2009 9:27 pm

Re: Config file ignored since upgrading

Postby ischemic » Mon May 18, 2009 8:34 pm

I found some script to make a daemon for it so that it starts when the server starts :

Code: Select all
. /lib/lsb/init-functions
PATH=/usr/local/sbin/pms:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin
PMS_FOLDER=/usr/local/sbin/pms/
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

PMSUSER=1000
PMSGROUP=1000

# 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
ischemic
 
Posts: 2
Joined: Sun May 17, 2009 9:14 pm

Re: Config file ignored since upgrading

Postby Topguy » Tue May 19, 2009 3:41 pm

Then I would check file-access rights and ownership on those files in "/usr/local/sbin/pms".
Topguy
 
Posts: 219
Joined: Mon Jan 19, 2009 9:27 pm


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 11 guests