Subject: Trouble with rc.local
To: None <>
From: Roger Fischer <>
List: netbsd-users
Date: 01/20/2001 16:09:56
I put a couple of lines in my /etc/rc.local script to start up
netatalk.  but I'm getting a weird error:
	[: missing ]

I used the commented out lines for starting Apache
as a template. I've attached my rc.local as well
as the output of trying to run it below.

Help appreciated.  Thanks,
	- roger

#       $NetBSD: rc.local,v 2000/10/07 20:21:35 hubertf Exp $
#       originally from: @(#)rc.local   8.3 (Berkeley) 4/28/94
# This file is (nearly) the last thing invoked by /etc/rc during a
# normal boot, via /etc/rc.d/local.
# It is intended to be edited locally to add site-specific boot-time
# actions, such as starting locally installed daemons.
# An alternative option is to create site-specific /etc/rc.d scripts.

echo -n 'starting local daemons:'

# Add your local daemons here.

#if [ -f /usr/pkg/etc/rc.d/apache ]; then
#       /usr/pkg/etc/rc.d/apache start

if [ -f /usr/pkg/etc/rc.d/]; then
        /usr/pkg/etc/rc.d/ start

echo '.'

max: {27} /etc/rc.local
starting local daemons:[: missing ]
max: {28}