Skip to content

Commit

Permalink
#29 add RuntimeDirectory to automatically create /var/run/thehive at …
Browse files Browse the repository at this point in the history
…start
  • Loading branch information
jeromeleonard committed Nov 28, 2016
1 parent 510de23 commit d39e253
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions install/thehive.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ Wants=network-online.target
After=network-online.target

[Service]
Environment=PID_DIR=/var/run/thehive
WorkingDirectory=/opt/thehive

User=thehive
Group=thehive

ExecStart=/opt/thehive/bin/thehive \
-Dconfig.file=/etc/thehive/application.conf \
-Dhttp.port=9000 \
-Dpidfile.path=/opt/thehive/RUNNING_PID
RuntimeDirectory=thehive
RuntimeDirectoryMode=0750

ExecStart=/opt/thehive/bin/thehive \
-Dconfig.file=/etc/thehive/application.conf \
-Dhttp.port=9000 \
-Dpidfile.path=${PID_DIR}/pid

StandardOutput=journal
StandardError=inherit
Expand Down

0 comments on commit d39e253

Please sign in to comment.