blob: e6d5485ba9587d7815dabf225d62c866d60356c1 (
plain) (
blame)
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
|
# =========================================================================== #
# _ __ __ __ _
# __ ______ (_) /_ _______ ______ _____/ /_/ /_ (_)___ ____ _
# / / / / __ \/ / __/ / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/
# / /_/ / / / / / /__ (__ ) /_/ / / / / /__/ /_/ / / / / / / / /_/ /
# \__,_/_/ /_/_/\__(_) /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, /
# /____/ /____/
#
# =========================================================================== #
[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
Restart=on-failure
RestartSec=60s
[Install]
WantedBy=default.target
|