From 611f9e955bb5ec33aea5c03a48cc7c38e69601f7 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Mon, 28 Dec 2020 12:40:38 +0300 Subject: [PATCH] change service --- torrserver.service | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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