Browse Source

bttrack: Run bttrack with bttrack user (refs: #216)

Sebastien Badia 8 years ago
parent
commit
298c0d8b35
1 changed files with 5 additions and 1 deletions
  1. 5 1
      templates/bttrack/bttrack.service.erb

+ 5 - 1
templates/bttrack/bttrack.service.erb

@@ -1,8 +1,12 @@
 [Unit]
 [Unit]
 Description=Bittorent LDN Tracker
 Description=Bittorent LDN Tracker
-After=network.target auditd.service
+Requires=network.target
+After=network.target
 
 
 [Service]
 [Service]
+Type=simple
+User=bttrack
+Group=bttrack
 ExecStart=/usr/bin/bttrack --dfile <%= @dfile %> --logfile <%= @logfile %> --port <%= @port %> --nat_check <%= @nat_check %> --allowed_dir <%= @allowed_dir %> --ipv6_enabled <%= @ipv6_enabled %> --ipv6_binds_v4 <%= @ipv6_binds_v4 %> --bind <%= @bind %>
 ExecStart=/usr/bin/bttrack --dfile <%= @dfile %> --logfile <%= @logfile %> --port <%= @port %> --nat_check <%= @nat_check %> --allowed_dir <%= @allowed_dir %> --ipv6_enabled <%= @ipv6_enabled %> --ipv6_binds_v4 <%= @ipv6_binds_v4 %> --bind <%= @bind %>
 ExecReload=/bin/kill -HUP $MAINPID
 ExecReload=/bin/kill -HUP $MAINPID
 KillMode=process
 KillMode=process