mirror of
https://github.com/OPSnet/Ocelot.git
synced 2026-01-16 18:04:19 -05:00
Create ocelot.service (#14)
Systemd init file for ocelot to put on /lib/systemd/system/
This commit is contained in:
committed by
it is madness
parent
861ccf7eae
commit
6d8f859455
20
ocelot.service
Normal file
20
ocelot.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Ocelot Bittorrent Tracker
|
||||
After=network.target
|
||||
After=mysql.target
|
||||
Requires=network.target
|
||||
Requires=mysql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
TimeoutStartSec=0
|
||||
ExecStart=/usr/local/bin/ocelot
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
PIDFile=/var/run/ocelot.pid
|
||||
RestartSec=20
|
||||
TimeoutStopSec=60
|
||||
TimeoutStartSec=360
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user