Sawmill Discussion Forum
emlincek
Member since Jun-18-02
2 posts |
Jun-18-02, 06:41 AM (PST) |
 |
"sawmill dead but subsys locked"
|
I have downloaded and installed sawmill 6.3.8 on a RedHat Linux 7.2 server that's been updated with all patches. Running from the command line to "try it out" works great! (Very nice product, BTW - would like to buy...) However, when following the instructions for "Running Sawmill at System Startup", I get a message that sawmill has started 'OK' and then a subsequent status execution reveals that 'sawmill dead but subsys locked'. Note: If I run the status fast enough after the start command, I see TWO (2) process running, then a subsequent status reveals that it fails. Some notes on my installation: o I've copied sawmill6.3.8 to sawmill in /bin o I've created a sawmilld script in /bin with the commands: #!/bin/sh sawmill & o I've created a script in /etc/rc.d/init.d with the commands: #!/bin/sh # # Startup script for Sawmill # function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting sawmill: " daemon sawmilld echo touch /var/lock/subsys/sawmill ;; stop) echo -n "Shutting down sawmill: " killproc sawmill echo rm -f /var/lock/subsys/sawmill rm -f /var/run/sawmill.pid ;; status) status sawmill ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading sawmill: " killproc sawmill -HUP echo ;; *) echo "Usage: $0 {start|stop|restart|reload|status}" exit 1 esac exit 0 o I've made the symbolic links (ln -s) in the /etc/rc.d/rcN.d directories as instructed...
o I've made the symbolic link in the /etc/sawmill directory as instructed back to my initial expanded/exploded directory (/root/rpms/sawmill)... o I've made my sawmilld script in /bin executable with 'chmode a+rx'. I am trying to start the sawmill server program with the following commands: /etc/rc.d/init.d/sawmilld start /etc/rc.d/init.d/sawmilld status {to see if it started properly} The program seems to try to start and then fail. Is there anything I can do to see what is happening? Please help and advise... Most Sincerely, Erik Mlincek NetPeople, Inc. http://www.netpeopleinc.com |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
ferrar
Member since Sep-5-01
2971 posts |
Jun-18-02, 08:17 AM (PST) |
 |
1. "RE: sawmill dead but subsys locked"
In response to message #0
 |
Our online instructions for installing Sawmill as rc.d are not quite up to date. 6.3.9 will have better instructions, but for now, here are the new ones. Note that the new method requires you to create a /bin/sawmilld script (a tiny thing that just starts sawmill in the background). Install a script to start Sawmill in /etc/rc.d (or /etc/init.d, or however your UNIX variant does it). A sample script, based on the Apache script, is available here <http://www.flowerfire.com/sawmill/sawmill_etc_rcd.sh>. The method varies from UNIX to UNIX, but to give one specific example, in RedHat Linux 7.0 you should call the script sawmilld and put it in /etc/rc.d/init.d, and then make symbolic links to it from the rc0.d - rc6.d directories, encoding into the name of the link whether to Start sawmill at that runlevel, or to Kill it. A good sequence of links is the following:
ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc0.d/K15sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc1.d/K15sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc2.d/K15sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc3.d/S85sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc4.d/S85sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc5.d/S85sawmilld ln -s /etc/rc.d/init.d/sawmilld /etc/rc.d/rc6.d/K15sawmilld If you're not sure where to put the Sawmill links or what to call them, and you have Apache installed on your system, look for files shows names contain httpd in /etc/rc.d or /etc/init.d, and use the same names and locations for Sawmill, replacing httpd with sawmilld. Rename the Sawmill executable to sawmill and put it in /bin or somewhere else in your default path. Download the script sawmilld <http://www.flowerfire.com/sawmill/sawmilld> and put it in /bin. Make it executable using the command chmod a+rx /bin/sawmilld. Put a symbolic link to LogAnalysisInfo in /etc/sawmill/LogAnalysisInfo (or you can put the actual directory there), using the ln -s command, e.g. ln -s /usr/home/sawmill/LogAnalysisInfo /etc/sawmill/LogAnalysisInfo (you'll need to create the directory /etc/sawmill first).
- Greg Ferrar, Sawmill Product Manager support@sawmill.net |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
 |
|
 |
Bill Raynor

unregistered user
|
Mar-26-03, 10:05 AM (PST) |
|
4. "RE: sawmill dead but subsys locked"
In response to message #3
|
I experienced this same problem and was able to resolve it by not spawning the script with the daemon process. Basically I modified the following line from your example script like so... daemon sawmilld (this was the original that wasn't working) /bin/sawmilld (replacement line that does work) Since the sawmilld script that I already have places the sawmill process in the background I assumed the daemon process was getting confused. Of course this is just and assumption but I am able to start, stop and restart the process fine and it works like a champ. I hope this helps. Bill Raynor Network Ops Mgr
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
 |
Toby Kraft

unregistered user
|
Jun-19-03, 01:58 PM (PST) |
|
5. "RE: sawmill dead but subsys locked"
In response to message #4
|
I had the same problem and found that everything works fine if your /bin/sawmilld script uses the full path on the executable, like this: #!/bin/sh /bin/sawmill &Both /bin/sawmilld -and- daemon sawmilld will work in the /etc/rc.d/init.d script. the FAQ topic on this should be updated on the website! Thanks for a fine product, too! |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
 |
|
 |
|
 |
Toby Kraft

unregistered user
|
Sep-17-03, 12:30 PM (PST) |
|
8. "RE: sawmill dead but subsys locked"
In response to message #7
|
Graham, Sorry for the late reply but... I made this change on a RAQ server running an old redhat release (6.x or something) and that's what worked for me. I just installed sawmill 6.5.1 on redhat 7.1 and found that the /bin/sawmilld script worked but I had to call it from the /etc/rc.d/init.d/sawmilld script directly, for some reason the daemon sawmilld didn't start up sawmill. Also, you might consider putting the chkconfig info in the /etc/rc.d/init.d/sawmilld script so the chkconfig command can be used to create the start/stop links. # chkconfig: 35 91 31 # description: Start/Stop Sawmill in web server mode is what I used. Thanks, Toby |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
|