aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_syncthing/templates/syncthing.service
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
committerbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
commit68c01a04cd6268c1dee66678c258cd4c240d5bb1 (patch)
tree1419eec22fa637159ba5e61ae1a6d9e11408a506 /roles/setup_syncthing/templates/syncthing.service
downloadinfrastructure-68c01a04cd6268c1dee66678c258cd4c240d5bb1.tar.gz
Cleanup for public release
Diffstat (limited to 'roles/setup_syncthing/templates/syncthing.service')
-rw-r--r--roles/setup_syncthing/templates/syncthing.service25
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/setup_syncthing/templates/syncthing.service b/roles/setup_syncthing/templates/syncthing.service
new file mode 100644
index 0000000..fe4c429
--- /dev/null
+++ b/roles/setup_syncthing/templates/syncthing.service
@@ -0,0 +1,25 @@
+
+# =========================================================================== #
+# _ __ __ __ _
+# __ ______ (_) /_ _______ ______ _____/ /_/ /_ (_)___ ____ _
+# / / / / __ \/ / __/ / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/
+# / /_/ / / / / / /__ (__ ) /_/ / / / / /__/ /_/ / / / / / / / /_/ /
+# \__,_/_/ /_/_/\__(_) /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, /
+# /____/ /____/
+#
+# =========================================================================== #
+
+[Unit]
+Description=Synchronization service for files
+
+[Service]
+Type=simple
+User={{ syncthing_user }}
+Group={{ syncthing_group }}
+WorkingDirectory={{ syncthing_files_directory }}
+ExecStart={{ syncthing_bin_directory }}/syncthing
+ExecStop=/bin/kill -s HUP $MAINPID
+RuntimeDirectoryMode=0700
+
+[Install]
+WantedBy=default.target
remember that computers suck.