Skip to content

Commit 2a8370d

Browse files
keirlawsonmuuki88
authored andcommitted
Add recipe for setting umask (#1038)
* Add recipe for setting umask Closes #1032 * Add explicit reference to Java Server archetype
1 parent 223a45f commit 2a8370d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/sphinx/recipes/umask.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. _umask:
2+
3+
Setting the umask for your process
4+
==================================
5+
6+
When using the :ref:`java-server-plugin`, the umask, associated with the user running the process,
7+
will determine what permissions files generated by the process, such as log file, will have. Usually the system default umask
8+
for daemons is fine and can be left unchanged, however sometime the need arises to oerride it.
9+
10+
System V/systemd
11+
----------------
12+
13+
To set a custom umask for your application that is running either via a System V init script or systemd, the umask can be
14+
specified via a custom ``/etc/default/appname`` file. The contents of this file can be specified by creating a template at
15+
``src/templates/etc-default`` and adding a line such as the following:
16+
17+
18+
.. code-block:: bash
19+
20+
umask 022

0 commit comments

Comments
 (0)