LogsDirectory vs. group adm

Thorsten Glaser t.glaser at tarent.de
Fri Mar 29 21:26:36 GMT 2019


On Fri, 29 Mar 2019, Felipe Sateler wrote:

> It might be a good idea to store that script somewhere else (possibly
> /usr/lib/tomcat9 ?) and call it from the init script. As the script gets

Indeed… the systemd unit calls the scripts from /usr/libexec/tomcat9/
(which is the currently recommended location for such things, as they
are not libraries, nor normal commands) already, and I’m almost sure
I managed to figure out enough magic around start-stop-daemon to be
able to just call the same scripts the systemd unit does, so the init
script itself will be trivial enough (it does manual tmpdir setup,
which is automated by systemd, granted, but not much more than that).

Lintian teaches this, too, by the way (at least if you’re trying to
call an init script from a systemd service file *cough* which works,
if you set a special environment variable, but… let’s just say it has
a point and scripts under /usr/libexec/ are definitely better).

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

**********

Mit der tarent Academy bieten wir auch Trainings und Schulungen in den
Bereichen Softwareentwicklung, Agiles Arbeiten und Zukunftstechnologien an.

Besuchen Sie uns auf www.tarent.de/academy. Wir freuen uns auf Ihren Kontakt.

**********



More information about the Pkg-systemd-maintainers mailing list