2016-03-29 20:55:57 +00:00
|
|
|
[Unit]
|
2016-04-07 15:57:53 +00:00
|
|
|
Description=osync - a robust two way (bidirectional) file sync script based on rsync with fault tolerance
|
2016-03-29 20:55:57 +00:00
|
|
|
After=time-sync.target local-fs.target network-online.target
|
|
|
|
Requires=time-sync.target local-fs.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2017-03-14 20:26:43 +00:00
|
|
|
ExecStart=$(which osync.sh) /etc/osync/%i --on-changes --errors-only
|
2017-03-14 20:32:48 +00:00
|
|
|
SuccessExitStatus=0 2
|
2016-03-29 20:55:57 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|