DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th November 2010
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 580
Thanked 9 Times in 9 Posts
Default Current Gnome 2.32 rc.d Startup scripts

It looks like the startup scripts for cups, gdm etc have been modified but I can not find any documentation on how to implement the script.

Quote:
2010-10-29 06:54:44 by Antoine Jacoutot | Files touched by this commit (28)

Log message:
Add RCS IDs to rc scripts.

2010-10-28 06:15:13 by Steven Mestdagh | Files touched by this commit (1)

Log message:
add comment indicating reason for gnu libtool

2010-10-28 05:01:18 by Antoine Jacoutot | Files touched by this commit (4)

Log message:
Add an rc script for gdm.
ok robert@
In Slackware one makes the script executable in /etc/rc.d. In FreeBSD one enables the script in rc.conf

Anyone have insight into how to enable avahi, cups, dbus and gdm?

This is the new, modified rc.local script
Quote:
# $OpenBSD: rc.local,v 1.40 2010/10/26 20:56:03 robert 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 'starting local daemons:'

for _r in $rc_scripts; do
[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} start && echo -n " ${_r}"
done
It looks like it reads the string rc_scripts which I cannot find in /etc

The entries in /etc/rc.d
Quote:
# cd /etc/rc.d
# less
Missing filename ("less --help" for help)
# ls
avahi_daemon cupsd gdm rc.subr saslauthd
avahi_dnsconfd dbus_daemon mpd saned

Thanks in advance

Last edited by shep; 4th November 2010 at 11:05 PM. Reason: added more info
Reply With Quote
  #2   (View Single Post)  
Old 5th November 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,612
Thanked 214 Times in 189 Posts
Default

OpenBSD does not have an rc.d infrastructure. Only /etc/rc, /etc/rc.local, /etc/rc.conf, and /etc/rc.conf.local. The conf files are only for variables used in /etc/rc -- they are not used in /etc/rc.local.
Reply With Quote
  #3   (View Single Post)  
Old 5th November 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by jggimi View Post
OpenBSD does not have an rc.d infrastructure. Only /etc/rc, /etc/rc.local, /etc/rc.conf, and /etc/rc.conf.local. The conf files are only for variables used in /etc/rc -- they are not used in /etc/rc.local.
There will be a rc.d implementation in 4.9, this was done by Robert Nagy at the p2k10 ports hackathon I believe.

http://marc.info/?l=openbsd-cvs&m=128811627000775&w=2

We can only hope that this implementation will be better than the offerings of other systems, I know that rc.d scripts are unaesthetically pleasing on Linux.

Personally I believe that one should learn the base utilities over blindly executing some scripts in /etc/rc.d, other OpenBSD users may agree with me.
Reply With Quote
  #4   (View Single Post)  
Old 5th November 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,612
Thanked 214 Times in 189 Posts
Default

There's been an rc.subr in -current for approximately a week. As the rc.d infrastructure is not yet in -current, my statement is (-current-ly) factual.

Edited to add -- ok; longer than a week. October 26.
Quote:
Add a simple 'rc' system to base in order to start/stop/restart/reload services installed by the ports system (for now).It only uses pgrep/pkill to handle these processes. A manual page willcome later.
Reply With Quote
  #5   (View Single Post)  
Old 5th November 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Right, it's in the latest snapshots now though.. AFAIK, it'll only be used by ports until a decision is made.

I'm guessing OP is running -current snapshots?
Reply With Quote
  #6   (View Single Post)  
Old 6th November 2010
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 580
Thanked 9 Times in 9 Posts
Default

I was trying a current snapshot from 11-2 after failing to update 4.8 release to 4.8 stable.
Reply With Quote
  #7   (View Single Post)  
Old 30th January 2011
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 580
Thanked 9 Times in 9 Posts
Default

I finally figured this out.

In /etc/rc.conf.local place
Quote:
rc_scripts="dbus_daemon avahi_daemon cupsd gdm"

Edit for syntax change.
Quote:
2011/07/07 - rc.conf 'rc_scripts' variable renamed to 'pkg_scripts'
The rc.conf(8) rc_scripts variable has been renamed to pkg_scripts. Edit rc.conf.local(8) accordingly to be able to start package daemons automatically on boot.
This change was introduced to make it clear that pkg_scripts should only be used to store packages(7) rc.d(8) scripts names.

Last edited by shep; 14th August 2011 at 02:26 AM.
Reply With Quote
Reply

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
ppp scripts help wokko NetBSD Installation and Upgrading 10 18th May 2010 05:29 AM
Executing web scripts : can't! erehwon OpenBSD General 3 3rd November 2009 10:02 PM
OpenBSD4.5 current to current... valorisa OpenBSD Installation and Upgrading 7 6th June 2009 09:26 AM
Periodic scripts for mail scripts stukov FreeBSD General 2 8th March 2009 07:51 PM


All times are GMT. The time now is 01:41 PM.


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