View Single Post
  #1   (View Single Post)  
Old 12th January 2014
Biased Biased is offline
New User
 
Join Date: Jan 2014
Posts: 6
Default Issues with rc.local file (and getting CUPS to start at boot time)

Hi all,
1st post so go easy!

I've been putting together an OpenBSD 5.4 virtual, on Virtual box, with Ubuntu 12.04LTS as host OS. It's up and running, and CUPS is installed and can be started manually, but I can't seem to get the rc.local file organised, so that CUPS starts on boot. Whatever I try, I cop a syntax error suggesting an un-closed quote at line (x).

Current rc.local is as below:
Code:
#	$OpenBSD: rc.local,v 1.44 2011/04/22 06:08:14 ajacoutot Exp $

# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode.  For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.

echo -n 'Staring local Daemons:'

#Add local startup actions here.

#if [ -x /usr/local/bin/dbus-daemon ]; then
#	mkdir -p /var/run/dbus
#	chmod 0755 /var/run/dbus
#	chown -R messagebus:messagebus /var/run/dbus --system

#	/usr/local/bin/dbus-daemon
#fi

if [ -x /usr/local/libexec/smbd ]; then
	echo -n ' smbd'
	/usr/local/libexec/smbd
fi

if [ -x /usr/local/libexec/nmbd ]; then
	echo -n ' nmbd'
	/usr/local/libexec/nmbd 
fi

if [ -x /usr/local/sbin/cupsd ]; then
	echo -n ' cupsd';	/usr/local/sbin/cupsd
fi

#if [ -x /usr/local/sbin/snmpd ]; then
#	echo -n ' snmpd';	/usr/local/sbin/snmpd
#fi

kdm_flags=""
if [ "X${kdm_flags} != X"NO" ] then
  /usr/local/bi/kdm ${kdm_flags} ;
echo -n 'kdm '
fi

echo '.'
Whatever I try at the end, I get the same error. Obviously I'm missing something basic, so can someone point it out to me? Thanks in advance.

Last edited by ocicat; 12th January 2014 at 04:09 AM. Reason: Please use [code] & [/code] tags when posting file contents.
Reply With Quote