update service

This commit is contained in:
YouROK
2021-03-09 09:07:55 +03:00
parent 4462ae7d5e
commit d36d0c28f8

View File

@@ -1,9 +1,10 @@
[Unit]
Description = Torrserver
Description = TorrServer
After = syslog.target network.target nss-lookup.target
[Service]
Type = simple
Environment="GODEBUG=madvdontneed=1"
ExecStart = /path/to/torrserver -d /path/to/db/
ExecReload = /bin/kill -HUP ${MAINPID}
ExecStop = /bin/kill -INT ${MAINPID}
@@ -12,4 +13,4 @@ Restart = on-failure
LimitNOFILE = 4096
[Install]
WantedBy = multi-user.target
WantedBy = multi-user.target