diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-22 16:05:45 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-29 15:49:09 +0200 |
commit | e39f7f8e3c940cb6e6fd23e99f03017bb5865114 (patch) | |
tree | 47d4fc22998fe28c5a2a76c20bc5848647c68a1f | |
parent | cc5e4dca6a778a19193c3b06afbac68df957629c (diff) |
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).
-rw-r--r-- | tiptorrent@.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tiptorrent@.service b/tiptorrent@.service new file mode 100644 index 0000000..b3956e0 --- /dev/null +++ b/tiptorrent@.service @@ -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 |