Jon LaBadie <[email protected]> (Di 11 Jul 2017 07:56:28 CEST): > > > Added "After=local-fs.target". Debian may not even have > > > the "local-fs.target", or they may have something similar. > > > > Do the "After=" dependencies matter for socket activated services? > I don't know. Why do you think they may not matter?
Hm. I did some investigation.
The amanda.socket is WantedBy the sockets.target. This is
independend on the local-fs.target. So it may happen, that the
amanda.service starts before local-fs.target is complete.
So, yes, After=local-fs.target seems to be useful for the
amanda.service.
> > > > | StandardInput=socket
> > > > | StandardError=journal
>
> Does this prevent writing to amanda's normal log/debug files?
No, it just redirects the STDERR (if there is any) to
the journal, and not to the client. Or needs amandad to send (stderr)
output to the client?
> > Maybe this could be done via an env file /etc/default/amanda having
> > SERVICES="amdump amindexd amindxtaped…"
> >
> > and then extending the .service unit:
> >
> > EnvironmentFile=-/etc/default/amanda
> > ExecStart=/usr/lib/amanda/amandad -auth=bsdtcp $SERVICES
>
> I was not aware of this capability. I think I'd pick a more specific
> variable name, like AMANDAD_SERVICES.
Hm. If the environement file is already named "amanda", I do not see
a reason to replicate "amanda" in the variable name. But I do not mind
either.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
signature.asc
Description: PGP signature
