From 66174b701faa1f1a7a82f179ce8c8e1cf856288d Mon Sep 17 00:00:00 2001 From: nefilim Date: Sat, 13 Dec 2014 08:16:59 -0800 Subject: [PATCH] Run the systemd service as the created & specified daemon user --- .../archetypes/java_server/systemloader/systemd/start-template | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemd/start-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemd/start-template index 0fc73f9e6..c9625e19d 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemd/start-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemd/start-template @@ -8,6 +8,7 @@ WorkingDirectory=${{chdir}} ExecStart=${{chdir}}/bin/${{exec}} Restart=always RestartSec=${{retryTimeout}} +User=${{daemon_user}} [Install] WantedBy=multi-user.target