diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/clsync/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/clsync/files')
-rw-r--r-- | app-admin/clsync/files/clsync.conf | 18 | ||||
-rw-r--r-- | app-admin/clsync/files/clsync.confd | 20 | ||||
-rw-r--r-- | app-admin/clsync/files/clsync.initd | 17 |
3 files changed, 55 insertions, 0 deletions
diff --git a/app-admin/clsync/files/clsync.conf b/app-admin/clsync/files/clsync.conf new file mode 100644 index 000000000000..91f38f17cd5c --- /dev/null +++ b/app-admin/clsync/files/clsync.conf @@ -0,0 +1,18 @@ +# clsync system configuration file +# +# General recommendations: +# 1. Put --dir-lists on tmpfs. +# 2. Use --uid and --gid to drop privileges whenever possible. +# 3. Keeep your clsync rules and sync scripts in /etc/clsync/. + +[default] +# Put your options here, see clsync man pages for a list of valid options. +# Also check examples directory (/usr/share/doc/clsync-*/examples). +# +#watch-dir = /what/dir/to/sync +#sync-handler = /etc/clsync/action.sh +#rules-dir = /etc/clsync/rules +#lists-dir = /tmp/clsync +#threading = safe +#delay-sync = 5 +#delay-collect = 5 diff --git a/app-admin/clsync/files/clsync.confd b/app-admin/clsync/files/clsync.confd new file mode 100644 index 000000000000..389f84e5d4b9 --- /dev/null +++ b/app-admin/clsync/files/clsync.confd @@ -0,0 +1,20 @@ +# /etc/conf.d/clsync: config file for /etc/init.d/clsync + +# config file, default is /etc/clsync/clsync.conf. +# to disable set to /dev/null +#CLSYNC_CONF="/etc/clsync/clsync.conf" + +# clsync options, have precedence over config file, +# see man clsync and $docdir/examples for details +#CLSYNC_OPTS="" + +# Example of direct rsync usage: +#CLSYNC_OPTS="--lists-dir /tmp/clsync --mode rsyncshell +#--watch-dir /source/dir --sync-handler /usr/bin/rsync +#--rules-file /etc/clsync/rules --distination-dir /destination/dir" + +# Change clsync nice level (default is unset) +#CLSYNC_NICE="0" + +# Change clsync ionice level (default is unset) +#CLSYNC_IONICE="2:7" diff --git a/app-admin/clsync/files/clsync.initd b/app-admin/clsync/files/clsync.initd new file mode 100644 index 000000000000..28175a5fb696 --- /dev/null +++ b/app-admin/clsync/files/clsync.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +[ -n "${CLSYNC_CONF}" ] && conffile="--config-file ${CLSYNC_CONF}" +[ -n "${CLSYNC_NICE}" ] && cmd_nice="--nice ${CLSYNC_NICE}" +[ -n "${CLSYNC_IONICE}" ] && cmd_ionice="--ionice ${CLSYNC_IONICE}" + +command="/usr/bin/clsync" +pidfile="/var/run/${SVCNAME}.pid" +command_args="--background --output=syslog --pid-file=${pidfile} \ +${conffile} ${CLSYNC_OPTS}" +start_stop_daemon_args="${cmd_nice} ${cmd_ionice}" + +depend() { + use net +} |