On Fri, 2006-01-27 at 04:33, Martin Simmons wrote: > >>>>> On Thu, 26 Jan 2006 20:06:02 -0700, Robert W Hartzell <[EMAIL > >>>>> PROTECTED]> said: > > > > Here's the tail end of the output of truss -p PID after executing > > ./bacula-fd stop > > > > /2: lwp_park(0xD1979F40, 0) (sleeping...) > > /2: lwp_park(0xD1979F40, 0) Err#62 ETIME > > /2: time() = 1138329419 > > /2: time() = 1138329419 > > /2: lwp_park(0xD1979F40, 0) (sleeping...) > > /1: Received signal #15, SIGTERM, in pollsys() [caught] > > /1: pollsys(0x08045FC0, 1, 0x00000000, 0x00000000) Err#4 EINTR > > /1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF > > [0x0000FFFF] > > /1: unlink("/opt/local/var/bacula/working/bacula-fd.9102.state") = 0 > > /1: open64("/opt/local/var/bacula/working/bacula-fd.9102.state", > > O_WRONLY|O_CREAT, 0640) = 4 > > /1: write(4, " B a c u l a S t a t e".., 188) = 188 > > /1: llseek(4, 188, SEEK_SET) = 188 > > /1: write(4, "\0\0\0\0", 4) = 4 > > /1: llseek(4, 0, SEEK_CUR) = 192 > > /1: llseek(4, 0, SEEK_SET) = 0 > > /1: write(4, " B a c u l a S t a t e".., 188) = 188 > > /1: close(4) = 0 > > /1: unlink("/opt/local/var/run/bacula/bacula-fd.9102.pid") = 0 > > /1: lwp_unpark(2) = 0 > > /2: lwp_park(0xD1979F40, 0) = 0 > > /2: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF > > [0x0000FFFF] > > /2: lwp_exit() > > /1: lwp_wait(2, 0x08045B98) = 0 > > /1: _exit(15) > > > > I don't know if this is helpful. > > Thanks, we're getting nearer. This clears up the confusion about which exit > status is 208: it is from the bacula-fd svc program, not the bacula-fd daemon. > Is /opt/local/svc/support-files/bacula-fd a script? Maybe its contents will > reveal why it exits with 208? > > __Martin
First let me apologize for miss-leading you and wasting your time. The script /opt/local/svc/support-files/bacula-fd is the same exact script that would have been installed in the /etc/init.d directory during the make install-autostart-fd. It's just moved to a different location. A quick look at this page http://www.sun.com/bigadmin/content/selfheal/ would explain far better then I could why. Basically sun is moving services from /etc/init.d and the rc*.d directories and putting them under the control of a daemon that is responsible for ensuring that a particular service is running. All of the above output was obtained by starting and then stopping bacula-fd manually from the bacula install directory (/opt/local) independent of svc control. Svc calls this script to start, restart, or stop bacula. When stopping bacula svc gets a return value thats not 0 so the service is put into maintenance mode and not restarted as it should be requiring operator intervention to clear the status of the service. This is the script responsible for starting and stopping bacula: #! /bin/sh # # bacula This shell script takes care of starting and stopping # the bacula File daemon. # # chkconfig: 2345 91 9 # description: It comes by night and sucks the vital essence from your computers. # # For Bacula release 1.38.5 (18 January 2006) -- solaris # case "$1" in start) echo "Starting the Bacula File daemon: " /opt/local/sbin/bacula-fd $2 -c /opt/local/etc/bacula-fd.conf RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /opt/local/var/bacula/subsys/bacula-fd ;; stop) echo "Stopping the Bacula File daemon: " pkill -x bacula-fd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /opt/local/var/bacula/subsys/bacula-fd ;; restart) $0 stop sleep 5 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac exit 0 I'm no expert but I think that the commands: /opt/local/bin/bacula stop echo $? 208 /opt/local/bin/bacula start echo $? 0 show the exit status of the bacula script which appears to be (208) and (0). I appreciate your time on this issue, and I hope this is a more clear explanation about what's happening. Thanks, Robert. P.S I will not be able to reply if needed until this evening. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users