Skip to content

Commit da4fff7

Browse files
committed
Add systemd override info
1 parent a8976a8 commit da4fff7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

debian/ipt.postinst

+18
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,22 @@ DATADIR_LOCATION_CONF=/var/lib/tomcat9/webapps/ipt/WEB-INF/datadir.location
3434
if ! [ -f $DATADIR_LOCATION_CONF ] ; then
3535
# ipt is not yet configured, suggest datadir location
3636
echo You can use /var/lib/ipt as datadir.location
37+
echo "Tomcat is sandboxed by systemd and only has write access to some
38+
directories (see /usr/share/doc/tomcat9/README.Debian):
39+
40+
To give access to your IPT data directory settings have to be overridden.
41+
42+
This is done by creating an override.conf file in
43+
/etc/systemd/system/tomcat9.service.d/ containing:
44+
45+
[Service]
46+
ReadWritePaths=/path/to/the/ipt-data-directory/
47+
48+
The service has to be restarted afterward with:
49+
50+
systemctl daemon-reload
51+
systemctl restart tomcat9
52+
53+
"
54+
3755
fi

0 commit comments

Comments
 (0)