You are not logged in.

#1 2009-06-13 09:51:44

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Is there any way to check rc.conf without restarting the machine?

Hi everybody,

I've VPS running with Arch. It was preinstalled with very, very old versiol so I've upgraded everything, updated rc.conf by hand but still never restarted completely. So my question is - is there any way to check that the server will boot up without issues? Is there any way to check that rc.conf is completely valid?

Offline

#2 2009-06-13 09:54:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Is there any way to check rc.conf without restarting the machine?

Paste it here, so we can have a look. However, if you've upgraded the system, and particularly the kernel, rebooting is the only way to check it properly.

Offline

#3 2009-06-13 11:30:24

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Is there any way to check rc.conf without restarting the machine?

You can check for syntax errors by running the file in bash:

$ source /etc/rc.conf 
$ cp /etc/rc.conf sandbox/
$ vi sandbox/rc.conf   ### here I went and broke it
$ source sandbox/rc.conf 
bash: sandbox/rc.conf: line 65: unexpected EOF while looking for matching `"'
bash: sandbox/rc.conf: line 88: syntax error: unexpected end of file

Offline

#4 2009-06-13 15:23:55

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: Is there any way to check rc.conf without restarting the machine?

peets, thanks! It seems to be ok at this point.

tomk, understood... Well, I'll paste it here maybe somebody could look throught for some possible incompability problems from old version:

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Vilnius"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()
MODULES=()
USELVM="no"

HOSTNAME="server"

DAEMONS=(syslog-ng network netfs crond sshd nginx mysqld @postfix php-fpm @svnse
rve @pure-ftpd)

lo="lo 127.0.0.1"
INTERFACES=(   "lo"  "venet0"  "venet0_0" )
venet0="venet0 127.0.0.1 netmask 255.255.255.255 broadcast 0.0.0.0"
rt_venet0="-net 191.255.255.1 netmask 255.255.255.255 dev venet0"
rt_default="default gw 191.255.255.1"
ROUTES=(  "rt_venet0"  "rt_default" )
venet0_0="venet0:0 79.98.27.163 netmask 255.255.255.255 broadcast 0.0.0.0"

The most important is to bring networking up after restart :-) last lines from "lo=..." is from old rc.conf so I'm not sure if this is compatible with newest Arch.

Thank you for help, guys!

Last edited by InfernalH (2009-06-13 15:24:37)

Offline

Board footer

Powered by FluxBB