clsync-systemd.sh 370 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Take the service file from this directory if it is not installed
  3. # on your system.
  4. # cp 'clsync@.service' /etc/systemd/system/
  5. systemctl enable clsync@SomeConfig
  6. mkdir -p /etc/clsync
  7. cat > /etc/clsync/clsync.conf <<EOF
  8. [SomeConfig]
  9. mode = simple
  10. watch-dir = /tmp
  11. sync-handler = echo
  12. EOF
  13. systemctl start clsync@SomeConfig
  14. systemctl status clsync@SomeConfig