You are not logged in.

#1 2009-01-31 23:42:12

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

[SOLVED]rc.d problem?

every time i start a daemon (/etc/rc.d/network, /etc/rc.d/ssh, blah blah) i get these funny errors

bash-3.2# /etc/rc.d/network restart
/etc/rc.conf: array assign: line 1: unexpected EOF while looking for matching `"'
/etc/rc.conf: array assign: line 64: syntax error: unexpected end of file
/etc/rc.conf: array assign: line 1: unexpected EOF while looking for matching `"'
/etc/rc.conf: array assign: line 64: syntax error: unexpected end of file
:: Stopping Network                                                                                                                                             [DONE]
/etc/rc.conf: array assign: line 1: unexpected EOF while looking for matching `"'
/etc/rc.conf: array assign: line 64: syntax error: unexpected end of file
:: Starting Network                                                                                                                                             [DONE]
bash-3.2#

but the service starts regardless of these errors.  i have no clue what is going on. help....

Last edited by grimrider (2009-02-01 00:40:06)

Offline

#2 2009-02-01 00:00:54

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [SOLVED]rc.d problem?

hi

could you post the contents of /etc/rc.conf ?

Last edited by quarkup (2009-02-01 00:01:10)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-02-01 00:22:04

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED]rc.d problem?

yeah sry bout how long it took, doin a million things at once lol

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="US/Eastern"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(8139cp 8139too mii ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 soundcore)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="grim"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#eth0="dhcp"
eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond gpm hal fam kdm)

Offline

#4 2009-02-01 00:36:11

biagio
Member
From: Florence - Italy
Registered: 2008-02-29
Posts: 49

Re: [SOLVED]rc.d problem?

not:

eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"INTERFACES=(eth0)

but:

eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

Offline

#5 2009-02-01 00:38:24

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: [SOLVED]rc.d problem?

grimrider wrote:

yeah sry bout how long it took, doin a million things at once lol

eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"INTERFACES=(eth0)

Try putting a return before INTERFACES=(eth0)

Offline

#6 2009-02-01 00:39:16

grimrider
Member
From: Ohio
Registered: 2008-12-09
Posts: 60

Re: [SOLVED]rc.d problem?

oh wow.  i should have spotted that out in a heartbeat.  i feel like an idiot now lol
thnx for the help guys lol

Last edited by grimrider (2009-02-01 00:39:39)

Offline

Board footer

Powered by FluxBB