systemd: add service template

To launch a tiptorrent service instance with /home/foobar as root:

	systemctl start tiptorrent@home-foobar

For systemd string escaping for unit names see systemd-escape(1).
master
tiptorrent development team 2021-09-22 16:05:45 +02:00
parent cc5e4dca6a
commit e39f7f8e3c
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# tiptorrent systemd service file
[Unit]
Description=tiptorrent server with root folder at %f
[Install]
WantedBy=multi-user.target
[Service]
ExecStart=/usr/bin/tiptorrent --redirect --root %f