Page 1 of 1

[SOLVED] Killing and restarting on Linux

PostPosted: Tue Mar 06, 2012 7:48 am
by kapz
I did search before hand...

<-------------------------Subsonic Help Request---------------------->
Problem Description: Subsonic is working great and the problem happens when I restart Subsonic. I have a script that basically...
- copies the subsonic database and ecache file from RAM (everything runs in RAM on unRAID).
- calls a kill -9 [PID].
- deletes the few directories subsonic creates (/var/subsonic/)
- then calls the script to start Subsonic. the very same script that runs when the computer reboots.

I can see the new process ID started and all the files exist as expected, but its like the webpages is not being served. I think there is some service that needs to be restarted. It could be using Kill -9 is wrong and not releasing some resources used by java.

Troubleshooting Steps:
- Lots of poking around.
- Tried restarting the "BSD Internet super-daemon" after the new subsonic process id is started (eg. /etc/rc.d/rc.indetd restart)
- reboot and subsonic works.

Playback Application and version: Firefox.
Subsonic Version: 4.5 (build 2384) – August 10, 2011
Server Version: jetty-6.1.x, java 1.6.0_20, Linux (145.0 MB / 224.8 MB)
Hardware Platform: unRAID server, based on Slackware 12.1

Java Memory Limit: N/A
Problem Filename: N/A
Last ten log file lines:
<-------------------------Subsonic Help Request---------------------->

Re: Killing and restarting on Linux

PostPosted: Tue Mar 06, 2012 8:02 am
by kapz
well, poking around some more and clearing the memory cache seems to fix my issue. Running the code after the new PID is started works. Although, it logically makes sense to run after cleaning up and before executing the subsonic_start script. I have tested this a few times, but I will leave this post here for future reference. And also test again tomorrow.
Code: Select all
sync; echo 3 > /proc/sys/vm/drop_caches