On Thu, Apr 5, 2018 at 10:35 AM, Dimitri Maziuk <dmaz...@bmrb.wisc.edu>
wrote:
>
> FWIW I'm deploying more, or at least as many, new centos 6 installs, than
> centos 7 ones. I've come to the conclusion that between systemd with its
> service files and mount units and stuff, breaking kernel ABI on every point
> release, and lack of support for non-RedHat software (like bacula), el7 is
> not really a viable platform for mission-critical servers. It's merely
> tolerable for *some* deployments.
>
> </rant>
>
I love systemd....not :-)
Unfortunately, it's something we'll have to get used to. Fwiw, systemd on
*early* releases of redhat/centos 7 was unstable (do I hear a resounding
"yes"? :-) At a minimum, you want to be on 7.4.
So back to the service file dilemma I whined about a few minutes ago....
Where I was getting hung up was trying to get any of the bacula service
files to pick up the variables they need. My read of the
systemd documentation is -- it's supposed to work....but three days of
banging my head was quite enough. I simply filled out all the "@foo@" spots
(which I had changed into ${foo}, just so you'll know...) with the correct
values. Here's my bacula-dir.service file:
[Unit]
Description=Bacula Director Daemon service
Requires=network.target
After=network.target
RequiresMountsFor=/usr/libexec/bacula/bin/working /usr/libexec/bacula/bin
/usr/libexec/bacula/bin /usr/libexec/bacula/bin/working
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/bacula-dir
User=root
Group=root
ExecStart=/usr/libexec/bacula/bin/bacula-dir -c
/usr/libexec/bacula/bin/bacula-dir.conf
PIDFile=/usr/libexec/bacula/bin/working/bacula-dir.9101.pid
ExecReload=/usr/libexec/bacula/bin/bacula-dir -t -c
/usr/libexec/bacula/bin/bacula-dir.conf
ExecReload=/bin/kill -HUP $MAINPID
StandardError=syslog
[Install]
WantedBy=multi-user.target
My -fd and -sd files are similar, of course.
All three services started without issue once I hard-coded everything. (I
don't like it...but it works....)
Now to remember what I did to get baculum running.... - d
--
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users