Skip to content

Commit

Permalink
Add recipe for setting umask (#1038)
Browse files Browse the repository at this point in the history
* Add recipe for setting umask

Closes #1032

* Add explicit reference to Java Server archetype
  • Loading branch information
keirlawson authored and muuki88 committed Oct 21, 2017
1 parent 223a45f commit 2a8370d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/sphinx/recipes/umask.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _umask:

Setting the umask for your process
==================================

When using the :ref:`java-server-plugin`, the umask, associated with the user running the process,
will determine what permissions files generated by the process, such as log file, will have. Usually the system default umask
for daemons is fine and can be left unchanged, however sometime the need arises to oerride it.

System V/systemd
----------------

To set a custom umask for your application that is running either via a System V init script or systemd, the umask can be
specified via a custom ``/etc/default/appname`` file. The contents of this file can be specified by creating a template at
``src/templates/etc-default`` and adding a line such as the following:


.. code-block:: bash
umask 022

0 comments on commit 2a8370d

Please sign in to comment.