Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
SME on CentOS 6
(view source)
Revision as of 09:13, 29 January 2013
352 bytes added
,
09:13, 29 January 2013
m
Keep upstart
Line 346:
Line 346:
</syntaxhighlight>
</syntaxhighlight>
−
====
Replace
upstart
with SysVinit
====
+
====
Tweak the system so it can start with
upstart
(and runlevel4)
====
−
We've almost finished, we just have to replace upstart with
the
good old SysVinit, because upstart
doesn't support
the custom
runlevel 7 SME uses.
+
Upstart (
the
default init in EL6)
doesn't support runlevel 7 SME uses.
So we'll switch to runlevel 4:
−
(This topic is currently being discussed here: [[bugzilla:7217|Bug 7217 - Usage of SysVinit, upstart or systemd]] )
+
*Create a custom template for /etc/inittab to change the default runlevel to 4
<syntaxhighlight lang="Bash">
<syntaxhighlight lang="Bash">
−
rpm
-e --
nodeps upstart sysvinit-tools
+
mkdir
-
p /etc/
e-
smith/templates
-
custom/etc/inittab/
−
rpm -Uvh http:
//
sme
-
mirror.firewall
-
services
.
com
/
releases
/
8
/
smeos
/
x86_64
/
SME
/
SysVinit-
2.
86
-
17
.
el5
.
x86_64
.
rpm
+
cat <<'EOF' >
/
etc
/
e
-
smith/templates
-
custom/etc/inittab/10defaultlevel
+
# Default runlevel
.
+
#
+
id:4:initdefault:
+
EOF
+
<
/
syntaxhighlight>
+
+
+
* Create a upstart job to start runsvdir (
/
etc
/
init
/
runsvdir.conf)
+
+
<syntaxhighlight lang="Bash">
+
start on runlevel 4
+
stop on shutdown
+
respawn
+
exec /etc
/
runit
/2
+
</syntaxhighlight>
+
+
* Move everything from rc7
.
d to rc4.d (all the links in rc4.d should then point to e
-
smith-service)
+
<syntaxhighlight lang="Bash">
+
rm -f /etc/rc4
.
d/*
+
cp -a /etc/rc7
.
d/* /etc/rc4
.
d/
</syntaxhighlight>
</syntaxhighlight>
VIP-ire
Bureaucrats
,
Administrators
665
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search