File: clsync-systemd.sh

package info (click to toggle)
clsync 0.4.5-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,404 kB
  • sloc: ansic: 15,074; sh: 466; makefile: 269
file content (16 lines) | stat: -rwxr-xr-x 370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Take the service file from this directory if it is not installed
# on your system.
# cp 'clsync@.service' /etc/systemd/system/
systemctl enable clsync@SomeConfig
mkdir -p /etc/clsync
cat > /etc/clsync/clsync.conf <<EOF
[SomeConfig]
mode = simple
watch-dir = /tmp
sync-handler = echo
EOF
systemctl start clsync@SomeConfig
systemctl status clsync@SomeConfig