Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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:
#	$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

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

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

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

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

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

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start only connected Nic at boot tolstoi NetBSD General 4 19th January 2012 01:49 AM
Cannot start program in rc.local guitarscn OpenBSD General 2 8th November 2010 01:10 PM
Weird time issues schrodinger OpenBSD General 7 26th October 2009 03:20 PM
firefox/thunderbird take very long time (~45s) to start caesius FreeBSD Ports and Packages 4 28th November 2008 12:04 AM
ATH not loaded during boot time?? disappearedng FreeBSD General 4 14th July 2008 06:57 AM

All times are GMT. The time now is 10:40 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick