I built v9.7 for 64 bit Raspbian. Using --with-systemd in ./configure installed the unit files ok. There was a thread in the list on this last month.
Regards Chris Wilkinson On Tue, 3 May 2022, 12:09 pm Wanderlei Huttel, <wanderleihut...@gmail.com> wrote: > > Hello guys > > I would like to know why when I compile Bacula source code, it doesn't > install Debian systemd services? > > I always use the commands > make -j 8 > make install > make install-autostart > > I know there is a directory in source code "src/platforms/systemd", that > has the systemd services, but when I > try to enable it looks it gets the /etc/init.d files. > > root@bacsys:/usr/src/bacula/bacula/platforms/debian# systemctl status > bacula-dir > ● bacula-dir.service - LSB: Start Bacula Director daemon at boot time > Loaded: loaded (/etc/init.d/bacula-dir; generated) > Active: inactive (dead) > Docs: man:systemd-sysv-generator(8) > > > > ================================================================================================= > # Trying to enable bacula services systemd > root@bacula:~# systemctl enable {bacula-fd,bacula-dir,bacula-sd} > bacula-fd.service is not a native service, redirecting to > systemd-sysv-install. > Executing: /lib/systemd/systemd-sysv-install enable bacula-fd > bacula-dir.service is not a native service, redirecting to > systemd-sysv-install. > Executing: /lib/systemd/systemd-sysv-install enable bacula-dir > bacula-sd.service is not a native service, redirecting to > systemd-sysv-install. > Executing: /lib/systemd/systemd-sysv-install enable bacula-sd > > > ================================================================================================= > # Bacula source code platforms/systemd > root@bacula:/usr/src/bacula/platforms/systemd# > total 40K > -rw-r--r-- 1 root root 77 mai 2 14:09 bacula.conf > -rw-r--r-- 1 root root 66 abr 27 15:05 bacula.conf.in > -rw-r--r-- 1 root root 930 mai 2 14:09 bacula-dir.service > -rw-r--r-- 1 root root 948 abr 27 15:05 bacula-dir.service.in > -rw-r--r-- 1 root root 785 mai 2 14:09 bacula-fd.service > -rw-r--r-- 1 root root 800 abr 27 15:05 bacula-fd.service.in > -rw-r--r-- 1 root root 979 mai 2 14:09 bacula-sd.service > -rw-r--r-- 1 root root 988 mai 2 13:22 bacula-sd.service.in > -rw-r--r-- 1 root root 3,8K mai 2 14:09 Makefile > -rw-r--r-- 1 root root 3,8K abr 27 15:05 Makefile.in > > > ================================================================================================= > If I only inform the option "--with-systemd" in my ./configure, > in config.out get the path /lib/systemd/system > > ./configure \ > --enable-smartalloc \ > --with-postgresql \ > --with-db-user=bacula \ > --with-db-password=bacula \ > --with-db-port=5432 \ > --with-openssl \ > --with-readline=/usr/include/readline \ > --sysconfdir=/etc/bacula \ > --bindir=/usr/bin \ > --sbindir=/usr/sbin \ > --with-scriptdir=/etc/bacula/scripts \ > --with-plugindir=/etc/bacula/plugins \ > --with-pid-dir=/var/run \ > --with-subsys-dir=/etc/bacula/working \ > --with-working-dir=/etc/bacula/working \ > --with-bsrdir=/etc/bacula/bootstrap \ > --with-s3=/usr/local \ > --with-basename=bacula \ > --with-hostname=192.168.1.1 \ > --with-systemd > --disable-conio \ > --disable-nls \ > --with-logdir=/var/log/bacula \ > --with-dump-email=em...@domain.com \ > --with-job-email=em...@domain.com > > > > ================================================================================================= > Configuration on Mon May 2 14:09:36 -03 2022: > > Host: x86_64-pc-linux-gnu -- debian 11.3 > Bacula version: Bacula 11.3.2 (24 March 2022) > Source code location: . > Install binaries: /usr/sbin > Install libraries: /usr/lib > Install config files: /etc/bacula > Scripts directory: /etc/bacula/scripts > Archive directory: /tmp > Working directory: /etc/bacula/working > PID directory: /etc/bacula/working > Subsys directory: /etc/bacula/working > Man directory: /usr/share/man > Data directory: /usr/share > Plugin directory: /etc/bacula/plugins > C Compiler: gcc 10.2.1-6) > C++ Compiler: /usr/bin/g++ 10.2.1-6) > Compiler flags: -g -O2 -Wall -x c++ -fno-strict-aliasing > -fno-exceptions -fno-rtti > Linker flags: > Libraries: -lpthread -ldl -ldl > Statically Linked Tools: no > Statically Linked FD: no > Statically Linked SD: no > Statically Linked DIR: no > Statically Linked CONS: no > Database backends: PostgreSQL > Database port: 5432 > Database name: bacula > Database user: bacula > Database SSL options: > > Job Output Email: em...@domain.com > Traceback Email: em...@domain.com > SMTP Host Address: localhost > > Director Port: 9101 > File daemon Port: 9102 > Storage daemon Port: 9103 > > Director User: > Director Group: > Storage Daemon User: > Storage DaemonGroup: > File Daemon User: > File Daemon Group: > > Large file support: yes > Bacula conio support: no -lreadline -lhistory -ltinfo > readline support: yes > TCP Wrappers support: no > TLS support: yes > Encryption support: yes > ZLIB support: yes > LZO support: yes > S3 support: yes > enable-smartalloc: yes > enable-lockmgr: no > bat support: no > client-only: no > build-dird: yes > build-stored: yes > Plugin support: yes > LDAP support: no > LDAP StartTLS support: no > AFS support: no > ACL support: yes > XATTR support: yes > GPFS support: no > systemd support: yes /lib/systemd/system > Batch insert enabled: PostgreSQL > > Plugins: > - Docker: no > - Kubernetes: > - LDAP BPAM: no > - CDP: auto > > > > Best regards > > *Wanderlei Hüttel* > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users >
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users