dbus startup landet im jeweiligen init archive (sysvinit oder upstart)

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5524 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-04-20 14:59:51 +00:00
parent fb2d38cb57
commit 109dae92db
2 changed files with 89 additions and 0 deletions

24
etc/init/dbus.conf Executable file
View File

@ -0,0 +1,24 @@
description "Startup autofs System for local configuration files"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started mountfs))
stop on runlevel [S016]
console output
post-start script
dbus-uuidgen --ensure
end script
script
export PATH=$PATH:/usr/X11R7/bin
/usr/bin/dbus-daemon --system --nofork
end script
post-stop script
if [ -f /var/run/dbus/pid ]; then
rm /var/run/dbus/pid
fi
end script

65
init/genpkg Normal file
View File

@ -0,0 +1,65 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $Source$
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version
#2 of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#Script:
#cvs module init script zur initialisierung
#der /etc/init.d scripten
#des Viitor_sysvinit archives.
#
#Letzte Änderung von: $Author: kueller $
#Datum der letzten Änderung: $Date: 2009-03-30 21:53:23 +0200 (Mo, 30 Mär 2009) $
#Version der Datei: $Revision: 4568 $
#
#$Log$
#Revision 1.5 2004/03/03 12:53:40 kueller
#Umstellung auf Viitor GPL Header
#
#
#$Log$
#Revision 1.5 2004/03/03 12:53:40 kueller
#Umstellung auf Viitor GPL Header
#
#Revision 1.4 2002/06/12 09:55:41 hkueller
#Eintrag für das install script hinzugefügt
#
#Revision 1.3 2001/10/16 22:01:47 kueller
#Init Scripten werden nun mit den passenden Berechtigungen versehen
#
#Revision 1.2 2001/09/28 22:04:46 kueller
#/etc/sysconfig/net wird nun explizit angelegt
#
#Revision 1.1.1.1 2001/09/23 00:02:08 kueller
#Neustart wg. Datenverlust
#
#
WDIR=`pwd`
mkdir -p etc/sysconfig/net
cd etc/init.d
for i in *; do
if [ -f $i ]; then
chmod 755 $i
fi
done
mkdir rc{S,0,1,2,3,4,5,6}.d
ln -s ../init.d init.d
cd $WDIR