Package: filetea / 0.1.16-4

systemd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Alberto Garcia <berto@igalia.com>
Subject: Add systemd service file
Forwarded: yes
Index: filetea/Makefile.am
===================================================================
--- filetea.orig/Makefile.am
+++ filetea/Makefile.am
@@ -13,6 +13,9 @@ EXTRA_DIST = \
 
 man8_MANS = filetea.8
 
+systemdsystemunitdir = /lib/systemd/system
+systemdsystemunit_DATA = filetea.service
+
 configdir = $(sysconfdir)/filetea
 config_DATA = filetea.conf
 
Index: filetea/filetea.service
===================================================================
--- /dev/null
+++ filetea/filetea.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=FileTea file sharing daemon
+Documentation=man:filetea(8)
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/filetea
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target