[Solved] Ubuntu 10.10: /var/run/subsonic gone after reboot

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

[Solved] Ubuntu 10.10: /var/run/subsonic gone after reboot

Postby CarPro » Mon Dec 13, 2010 6:26 am

Hi,

could you add following lines into your start script?

# create PID directory if not exist
[ -d /var/run/subsonic ] || install -m 755 -o subsonic -g subsonic -d /var/run/subsonic

It's because /var/run is a tmpfs filesystem and after reboot the subsonic subfolder is gone.

Best regards

CP
Last edited by CarPro on Mon Dec 13, 2010 2:48 pm, edited 1 time in total.
CarPro
 
Posts: 7
Joined: Thu Nov 18, 2010 8:40 am

Postby stozher » Mon Dec 13, 2010 11:00 am

Subsnic PID file is a created in "/var/run/" directory not in subdirectory. Default PID file is a "/var/run/subsonic.pid". See "/etc/init.d/subsonic":

NAME=subsonic
PIDFILE=/var/run/$NAME.pid


If you don't start SS as a daemon process define PID file in "/usr/share/subsonic/subsonic.sh". Open with plain text editor and edit line:

SUBSONIC_PIDFILE=

Variables in "/usr/share/subsonic/subsonic.sh" is a default values for non-daemon user startup. To change daemon variables edit "/etc/default/subsonic" (example from my server):

export LANG=en_US.utf8
SUBSONIC_ARGS="--home=/srv/subsonic --port=80 --max-memory=512 --default-music-folder=/srv/subsonic/Music --default-podcast-folder=/srv/subsonic/Music/Podcast --default-playlist-folder=/srv/subsonic/Playlists"
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby CarPro » Mon Dec 13, 2010 2:48 pm

You're right. Sorry for posting too fast. :-(

I changed the script (to /var/run/subsonic/$NAME.pid) in the past, because I start the daemon as a non-root user.

And I was wondering , why there wasn't a /var/run/subsonic dir. everytime I rebooted.

Again, sorry.

best regards
CarPro
 
Posts: 7
Joined: Thu Nov 18, 2010 8:40 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests