Hi all and Happy New Year!! On 26/12/15 11:51, Daniel Bareiro wrote:
> As I mentioned in another mail of this thread, I'm testing in a virtual > machine with Bacula 7.2.x. Beyond the mentioned problem (that it can > solve compiling the code from the Git repository), I had no problems > with systemd files. For that I invoked the configure script with the > --with-systemd switch and then: > > ---------------------------------------------------------------------- > root@baculatest:/usr/src/bacula/bacula# make install-autostart-sd > (cd platforms && make DESTDIR= install-autostart-sd || exit 1) > make[1]: Entering directory '/usr/src/bacula/bacula/platforms' > make[2]: Entering directory '/usr/src/bacula/bacula/platforms/debian' > Installing bacula-sd boot script ... > Installing bacula-sd symlinks ... > update-rc.d: warning: start and stop actions are no longer supported; > falling back to defaults > make[2]: Leaving directory '/usr/src/bacula/bacula/platforms/debian' > make[1]: Leaving directory '/usr/src/bacula/bacula/platforms' > ---------------------------------------------------------------------- > root@baculatest:/usr/src/bacula/bacula# make install-autostart-dir > (cd platforms && make DESTDIR= install-autostart-dir || exit 1) > make[1]: Entering directory '/usr/src/bacula/bacula/platforms' > make[2]: Entering directory '/usr/src/bacula/bacula/platforms/debian' > Installing bacula-dir boot script ... > Installing bacula-dir symlinks ... > update-rc.d: warning: start and stop actions are no longer supported; > falling back to defaults > make[2]: Leaving directory '/usr/src/bacula/bacula/platforms/debian' > make[1]: Leaving directory '/usr/src/bacula/bacula/platforms' > ---------------------------------------------------------------------- > root@baculatest:/var/log/bacula# systemctl enable bacula-sd > Synchronizing state for bacula-sd.service with sysvinit using update-rc.d... > Executing /usr/sbin/update-rc.d bacula-sd defaults > Executing /usr/sbin/update-rc.d bacula-sd enable > ---------------------------------------------------------------------- > root@baculatest:/var/log/bacula# systemctl enable bacula-dir > Synchronizing state for bacula-dir.service with sysvinit using > update-rc.d... > Executing /usr/sbin/update-rc.d bacula-dir defaults > Executing /usr/sbin/update-rc.d bacula-dir enable > ---------------------------------------------------------------------- > > But now I'm having some problems getting the two processes starts from > systemd (I get a "Permission denied" message for both processes). After > reviewing more closely, I found the owner and group was correct and it > was a issue with the permission bits for "others". > > ---------------------------------------------------------------------- > root@baculatest:/etc/bacula# ll /usr/sbin/bacula-* > -rwxr-x--- 1 root root 2929712 Dec 24 19:50 /usr/sbin/bacula-dir > -rwxr-x--- 1 root root 940720 Dec 24 19:50 /usr/sbin/bacula-fd > -rwxr-x--- 1 root root 1928928 Dec 24 19:50 /usr/sbin/bacula-sd > > root@baculatest:/etc/bacula# chmod o+rx /usr/sbin/bacula-* > ---------------------------------------------------------------------- > > Now I do not get the permissions error, but for some reason the > processes are not initiated: > > ---------------------------------------------------------------------- > root@baculatest:~# systemctl start bacula-sd.service > root@baculatest:~# systemctl status bacula-sd.service > ● bacula-sd.service - LSB: Start Bacula Storage daemon at boot time > Loaded: loaded (/etc/init.d/bacula-sd) > Active: active (exited) since Sat 2015-12-26 11:30:12 ART; 9s ago > Process: 2001 ExecStop=/etc/init.d/bacula-sd stop (code=exited, > status=0/SUCCESS) > Process: 3026 ExecStart=/etc/init.d/bacula-sd start (code=exited, > status=0/SUCCESS) > > Dec 26 11:30:12 baculatest bacula-sd[3026]: Starting Bacula Storage > Daemon: bacula-sd > ---------------------------------------------------------------------- > root@baculatest:~# systemctl start bacula-dir.service > root@baculatest:~# systemctl status bacula-dir.service > ● bacula-dir.service - LSB: Start Bacula Director daemon at boot time > Loaded: loaded (/etc/init.d/bacula-dir) > Active: active (exited) since Sat 2015-12-26 11:31:04 ART; 5s ago > Process: 2010 ExecStop=/etc/init.d/bacula-dir stop (code=exited, > status=0/SUCCESS) > Process: 3045 ExecStart=/etc/init.d/bacula-dir start (code=exited, > status=0/SUCCESS) > > Dec 26 11:31:04 baculatest bacula-dir[3045]: Starting Bacula Director: > bacula-dir > ---------------------------------------------------------------------- > > But I do not see the running processes: > > ---------------------------------------------------------------------- > root@baculatest:~# ps ax | grep bacula > 3055 pts/1 S+ 0:00 grep bacula > ---------------------------------------------------------------------- > > Have you had a problem like this and found the cause of it? I would appreciate any comments about this. Thanks in advance. Best regards, Daniel
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users