aboutsummaryrefslogblamecommitdiffstats
path: root/roles/setup_syncthing/templates/syncthing.service
blob: fe4c429e2274ebe2060e5f7f6e7315a77665b362 (plain) (tree)
























                                                                               

# =========================================================================== #
#                   _ __                             __  __    _            
#      __  ______  (_) /_     _______  ______  _____/ /_/ /_  (_)___  ____ _
#     / / / / __ \/ / __/    / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/
#    / /_/ / / / / / /__    (__  ) /_/ / / / / /__/ /_/ / / / / / / / /_/ / 
#    \__,_/_/ /_/_/\__(_)  /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, /  
#                               /____/                             /____/
#
# =========================================================================== #

[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.