Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 274431 Details for
Bug 368497
app-admin/lsyncd - add init.d and configuration files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init script & configuration plus sample lsyncd configuration
lsyncd.cat (text/plain), 1.25 KB, created by
Hasan Karahan
on 2011-05-23 20:26:44 UTC
(
hide
)
Description:
init script & configuration plus sample lsyncd configuration
Filename:
MIME Type:
Creator:
Hasan Karahan
Created:
2011-05-23 20:26:44 UTC
Size:
1.25 KB
patch
obsolete
>#!/sbin/runscript >############################################################################## > >depend() { > need net > after bootmisc >} > >checkconfig() { > if [ ! -f /etc/conf.d/lsyncd ] ; then > eerror "file /etc/conf.d/lsyncd missing" > eerror "see sample /usr/share/lsyncd/lsyncd.conf" > return 1 > fi > > return 0 >} > >start() { > checkconfig || return $? > > ebegin "Starting lsyncd" > start-stop-daemon --start --name lsyncd \ > --user ${LSYNCD_USER} --nice 10 \ > --exec /usr/bin/lsyncd \ > -- ${LSYNCD_OPTS} > eend $? >} > >stop() { > ebegin "Stopping lsyncd" > killall -q rsync ; start-stop-daemon --stop lsyncd > eend $? >} > >############################################################################## ># /etc/conf.d/lsyncd >############################################################################## > >LSYNCD_USER="myusr:mygrp" >LSYNCD_OPTS="/path/to/source/.lsyncd" > >############################################################################## ># /path/to/source/.lsyncd >############################################################################## > >sync{ > default.rsyncssh, > source = "/path/to/source/", > host = "user@server", > targetdir = "/path/to/target/", > rsyncOps = {"--bwlimit=128"} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 368497
: 274431 |
361554
|
361556