-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recipe for setting umask (#1038)
* Add recipe for setting umask Closes #1032 * Add explicit reference to Java Server archetype
- Loading branch information
1 parent
223a45f
commit 2a8370d
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |