From: Joseph F. <jfi...@pr...> - 2003-04-17 13:12:54
|
I just compiled and installed 1.30 beta on RedHat 8.0, and everything seemed to go well, but I ran into one small problem. I ran 'make install-autostart' to install the init scripts. But, whenever I stop any of the daemons, the deamon executable itself ends up getting deleted! My installation is in /opt/bacula, so stopping bacula-dir using '/etc/init.d/bacula-dir stop' deletes /opt/bacula/bin/bacula-dir. Then when I try to start it again, I receive the following error: "Starting the Bacula Director: execvp: No such file or directory". If I keep a copy of the original /opt/bacula/bin/bacula-dir and copy it back in there after stopping, then I can start it again with no problem. I took a quick peek at the init script, and it is fact deleting it. I'm not very familiar with how this is supposed to work, but it looks a little strange to me. Here's the part I'm talking about: stop) echo -n "Stopping the Director daemon: " killproc /opt/bacula/bin/bacula-dir RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /opt/bacula/bin/bacula-dir # <---- Why is this deleted? ;; Is this right, or did I do something wrong during setup? Joe |