Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83340 - /sbin/runscript.sh errors when trying to start rsyncd using /etc/init.d/rsyncd start
Summary: /sbin/runscript.sh errors when trying to start rsyncd using /etc/init.d/rsync...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://sial.org/pbot/7751
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 15:24 UTC by t35t0r
Modified: 2005-02-25 15:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t35t0r 2005-02-25 15:24:35 UTC
I'm using this version of rsyncd:
[ebuild   R   ] net-misc/rsync-2.6.0-r3  -acl -build -debug -static 0 kB

I followed the local rsync mirror guide from here http://forums.gentoo.org/viewtopic.php?t=181366 or here http://forums.gentoo.org/viewtopic.php?t=180336 or here http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror

this is my /etc/conf.d/rsyncd:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.conf.d,v 1.3 2004/07/15 00:11:37 agriffis Exp $

# Config file for /etc/init.d/rsyncd

# see man pages for rsync or run `rsync --help`
# for valid cmdline options
#RSYNC_OPTS=""
uid = nobody
gid = nobody
use chroot = yes

#limit access to private LAN's
hosts allow=160.129.14.0/255.255.255.0
hosts deny=*

max connections = 5
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd

#This will give you a separate log file
#log file = /var/log/rsync.log

#This will log every file transferred - up to 85,000+ per user, per sync
#transfer logging = yes

log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

#If you need this, UPGRADE portage please!
#[gentoo-x86-portage]
#this entry is for compatibility
#path = /usr/portage
#comment = Gentoo Linux Portage tree
#exclude=distfiles/

[gentoo-portage]
#modern versions of portage use this entry
path = /usr/portage
comment = Gentoo Linux Portage tree mirror
exclude = distfiles/

when I run /etc/init.d/rsyncd start (or stop or restart) i get these errors:

/sbin/runscript.sh: line 10: uid: command not found
/sbin/runscript.sh: line 11: gid: command not found
/sbin/runscript.sh: line 12: use: command not found
/sbin/runscript.sh: line 15: hosts: command not found
/sbin/runscript.sh: line 16: hosts: command not found
/sbin/runscript.sh: line 18: max: command not found
/sbin/runscript.sh: line 19: pid: command not found
/sbin/runscript.sh: line 20: motd: command not found
/sbin/runscript.sh: line 28: log: command not found
/sbin/runscript.sh: line 29: syslog: command not found
/sbin/runscript.sh: line 30: timeout: command not found
/sbin/runscript.sh: line 39: [gentoo-portage]: command not found
/sbin/runscript.sh: line 41: path: command not found
/sbin/runscript.sh: line 42: comment: command not found
/sbin/runscript.sh: line 43: exclude: command not found

..the server starts (or stops according to my command) but I can't connect to it from another box. I checked netstat -anlp | grep tcp and it is running.

I tried both the /etc/init.d/rsyncd script from those webpages and the one that comes with the rsync ebuild (its slightly newer) but both give the same errors.

Reproducible: Always
Steps to Reproduce:
1. follow the gentoo local rsync guide (just google for gentoo local rsync)
2. start rsyncd /etc/init.d/rsyncd start

Actual Results:  
I get the following errors, and i cannot connect to the rsyncd server from
another computer within the allowed host range:

/sbin/runscript.sh: line 10: uid: command not found
/sbin/runscript.sh: line 11: gid: command not found
/sbin/runscript.sh: line 12: use: command not found
/sbin/runscript.sh: line 15: hosts: command not found
/sbin/runscript.sh: line 16: hosts: command not found
/sbin/runscript.sh: line 18: max: command not found
/sbin/runscript.sh: line 19: pid: command not found
/sbin/runscript.sh: line 20: motd: command not found
/sbin/runscript.sh: line 28: log: command not found
/sbin/runscript.sh: line 29: syslog: command not found
/sbin/runscript.sh: line 30: timeout: command not found
/sbin/runscript.sh: line 39: [gentoo-portage]: command not found
/sbin/runscript.sh: line 41: path: command not found
/sbin/runscript.sh: line 42: comment: command not found
/sbin/runscript.sh: line 43: exclude: command not found

Expected Results:  
It should not have displayed those runscript.sh errors, it should be able to
read the /etc/conf.d/rsyncd.conf, and then it should properly start the server
so that I can connect other computers to the rsyncd server.
Comment 1 t35t0r 2005-02-25 15:42:42 UTC
sorry the file needs to be /etc/rsync/rsyncd.conf 
..my bad..