diff --git a/torrserver.service b/torrserver.service index b8044c1..4488799 100644 --- a/torrserver.service +++ b/torrserver.service @@ -1,10 +1,15 @@ [Unit] -Description=TorrServer +Description = Torrserver +After = syslog.target network.target nss-lookup.target [Service] -Type=simple -ExecStart=/bin/torrserver +Type = simple +ExecStart = /path/to/torrserver -d /path/to/db/ +ExecReload = /bin/kill -HUP ${MAINPID} +ExecStop = /bin/kill -INT ${MAINPID} +TimeoutSec = 30 +Restart = on-failure +LimitNOFILE = 4096 [Install] -WantedBy=multi-user.target - +WantedBy = multi-user.target