Skip to content

Commit

Permalink
#1954 Add default file for service environment
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 12, 2021
1 parent 0500d84 commit 29d6564
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ linuxPackageMappings ++= Seq(
file("package/thehive.service") -> "/usr/lib/systemd/system/thehive.service"
).withPerms("644"),
packageMapping(
file("package/thehive.default") -> "/etc/default/thehive",
file("conf/application.sample.conf") -> "/etc/thehive/application.conf",
file("package/logback.xml") -> "/etc/thehive/logback.xml",
file("package/logback-migration.xml") -> "/etc/thehive/logback-migration.xml"
Expand Down
4 changes: 4 additions & 0 deletions package/thehive.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Environment File for TheHive

# JAVA_OPTS for TheHive service can be set here
#JAVA_OPTS=""
3 changes: 2 additions & 1 deletion package/thehive.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Wants=network-online.target
After=network-online.target

[Service]
EnvironmentFile=-/etc/default/thehive
WorkingDirectory=/opt/thehive

User=thehive
Expand Down Expand Up @@ -34,4 +35,4 @@ SendSIGKILL=no
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit 29d6564

Please sign in to comment.