LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2007, 04:19 AM   #1
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Rep: Reputation: 15
Unhappy /tmp/gconfd-root


Hi,

Redhat Linux: Version 4 Update 2

After shutting down the server, when I started it up, it didn't show the genome display and gave the following error:

Dec 19 18:23:47 demo gconfd (root-4278): starting (version 2.8.1), pid 4278 user root'
Dec 19 18:23:47 demo gconfd (root-4278): Bad permissions 777 on directory /tmp/gconfd-root
Dec 19 18:23:47 demo gconfd (root-4278): Failed to get lock for daemon, exiting:
Directory /tmp/gconfd-root has a problem, gconfd can't use it.



After deleting gconfd-root, it started up with GUI mode.My query is that it happens all the time when the server is restarted.Let me also tell you that there are two Oracle instances running in this server. Is this problem has to do with this fact?
Can anybody provide a solution on this issue so that this can be stopped from happening all the time?

Awaiting an early reply,

Thank you in advance,
Kosys

Last edited by kosys; 12-21-2007 at 04:22 AM.
 
Old 12-21-2007, 12:52 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I would solve the problem by including a command to clean /tmp in the shutdown script.

--------------------
Steve Stites
 
Old 12-24-2007, 01:00 AM   #3
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,

Redhat Linux: Version 4 Update 2

May I know the location of the shutdown script where I can putdown the command to clean the /tmp directory?

Regards,
Kosys

Last edited by kosys; 12-24-2007 at 01:03 AM.
 
Old 12-24-2007, 03:35 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by kosys View Post
Hi,

Redhat Linux: Version 4 Update 2

May I know the location of the shutdown script where I can putdown the command to clean the /tmp directory?

Regards,
Kosys
I think that this is the way that you do it in Red Hat. There is a directory called /etc/rc0.d which holds all of the shutdown scripts. These shutdown scripts are run in order. Toward the end of the scripts is one that mounts / as read-only. You need to clean /tmp just before / is mounted as read-only. So try editing the script which mounts / as read-only and place these commands at the very beginning of the script:

# The following two commands were added by kosys to clean /tmp at shutdown
echo "cleaning /tmp"
rm /tmp/* -R

-----------------------------
Steve Stites
 
Old 12-27-2007, 11:07 PM   #5
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Smile

Hi,

Thank you Jailbait.........I'll try it and let you know.........

Regards,
kosys
 
Old 12-28-2007, 11:42 PM   #6
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Hi Jailbait,

I'm quite new in system administration.........so a little more details will be of much help.....

As per your suggestion I checked out the scripts under /etc/rc0.d but could't found one that mounts / as readonly.
I'm giving the list of the scripts under /etc/rc0.d. Can you please check out(by the script name) and tell me which is the script that mounts / as readonly which I can edit to clean /tmp.

lrwxrwxrwx 1 root root 28 May 25 2007 K02cups-config-daemon -> ../init.d/cups-
config-daemon
lrwxrwxrwx 1 root root 19 May 25 2007 K02haldaemon -> ../init.d/haldaemon
lrwxrwxrwx 1 root root 24 May 25 2007 K02NetworkManager -> ../init.d/NetworkMa
nager
lrwxrwxrwx 1 root root 20 May 25 2007 K03messagebus -> ../init.d/messagebus
lrwxrwxrwx 1 root root 15 May 25 2007 K03rhnsd -> ../init.d/rhnsd
lrwxrwxrwx 1 root root 17 May 25 2007 K05anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 13 May 25 2007 K05atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 May 25 2007 K05innd -> ../init.d/innd
lrwxrwxrwx 1 root root 19 May 25 2007 K05saslauthd -> ../init.d/saslauthd
lrwxrwxrwx 1 root root 14 May 25 2007 K10cups -> ../init.d/cups
lrwxrwxrwx 1 root root 19 May 25 2007 K10dc_server -> ../init.d/dc_server
lrwxrwxrwx 1 root root 16 May 25 2007 K10psacct -> ../init.d/psacct
lrwxrwxrwx 1 root root 17 May 25 2007 K10radiusd -> ../init.d/radiusd
lrwxrwxrwx 1 root root 13 May 25 2007 K10xfs -> ../init.d/xfs
lrwxrwxrwx 1 root root 15 May 25 2007 K12canna -> ../init.d/canna
lrwxrwxrwx 1 root root 19 May 25 2007 K12dc_client -> ../init.d/dc_client
lrwxrwxrwx 1 root root 17 May 25 2007 K12FreeWnn -> ../init.d/FreeWnn
lrwxrwxrwx 1 root root 17 May 25 2007 K12mailman -> ../init.d/mailman
lrwxrwxrwx 1 root root 13 May 25 2007 K15gpm -> ../init.d/gpm
lrwxrwxrwx 1 root root 15 May 25 2007 K15httpd -> ../init.d/httpd
lrwxrwxrwx 1 root root 15 May 25 2007 K16rarpd -> ../init.d/rarpd
lrwxrwxrwx 1 root root 14 May 25 2007 K17iiim -> ../init.d/iiim
lrwxrwxrwx 1 root root 20 May 25 2007 K20bootparamd -> ../init.d/bootparamd
lrwxrwxrwx 1 root root 24 May 25 2007 K20netdump-server -> ../init.d/netdump-s
erver
lrwxrwxrwx 1 root root 13 May 25 2007 K20nfs -> ../init.d/nfs
lrwxrwxrwx 1 root root 16 May 25 2007 K20rstatd -> ../init.d/rstatd
lrwxrwxrwx 1 root root 17 May 25 2007 K20rusersd -> ../init.d/rusersd
lrwxrwxrwx 1 root root 15 May 25 2007 K20rwhod -> ../init.d/rwhod
lrwxrwxrwx 1 root root 14 May 25 2007 K24irda -> ../init.d/irda
lrwxrwxrwx 1 root root 15 May 25 2007 K25squid -> ../init.d/squid
lrwxrwxrwx 1 root root 14 May 25 2007 K25sshd -> ../init.d/sshd
lrwxrwxrwx 1 root root 13 May 25 2007 K28amd -> ../init.d/amd
lrwxrwxrwx 1 root root 18 May 25 2007 K30sendmail -> ../init.d/sendmail
lrwxrwxrwx 1 root root 22 May 25 2007 K30spamassassin -> ../init.d/spamassassi
n
lrwxrwxrwx 1 root root 18 May 25 2007 K34dhcrelay -> ../init.d/dhcrelay
lrwxrwxrwx 1 root root 19 May 25 2007 K34yppasswdd -> ../init.d/yppasswdd
lrwxrwxrwx 1 root root 21 May 25 2007 K35cyrus-imapd -> ../init.d/cyrus-imapd
lrwxrwxrwx 1 root root 15 May 25 2007 K35dhcpd -> ../init.d/dhcpd
lrwxrwxrwx 1 root root 13 May 25 2007 K35smb -> ../init.d/smb
lrwxrwxrwx 1 root root 19 May 25 2007 K35vncserver -> ../init.d/vncserver
lrwxrwxrwx 1 root root 17 May 25 2007 K35winbind -> ../init.d/winbind
lrwxrwxrwx 1 root root 16 May 25 2007 K36dhcp6s -> ../init.d/dhcp6s
lrwxrwxrwx 1 root root 14 May 25 2007 K36lisa -> ../init.d/lisa
lrwxrwxrwx 1 root root 16 May 25 2007 K36mysqld -> ../init.d/mysqld
lrwxrwxrwx 1 root root 20 May 25 2007 K36postgresql -> ../init.d/postgresql
lrwxrwxrwx 1 root root 16 May 25 2007 K40smartd -> ../init.d/smartd
lrwxrwxrwx 1 root root 20 May 25 2007 K44rawdevices -> ../init.d/rawdevices
lrwxrwxrwx 1 root root 18 May 25 2007 K45arpwatch -> ../init.d/arpwatch
lrwxrwxrwx 1 root root 15 May 25 2007 K45named -> ../init.d/named
lrwxrwxrwx 1 root root 15 May 25 2007 K46radvd -> ../init.d/radvd
lrwxrwxrwx 1 root root 17 May 25 2007 K50netdump -> ../init.d/netdump
lrwxrwxrwx 1 root root 15 May 25 2007 K50snmpd -> ../init.d/snmpd
lrwxrwxrwx 1 root root 19 May 25 2007 K50snmptrapd -> ../init.d/snmptrapd
lrwxrwxrwx 1 root root 13 May 25 2007 K50tux -> ../init.d/tux
lrwxrwxrwx 1 root root 16 Nov 17 13:30 K50vsftpd -> ../init.d/vsftpd
lrwxrwxrwx 1 root root 16 May 25 2007 K50xinetd -> ../init.d/xinetd
lrwxrwxrwx 1 root root 17 May 25 2007 K54dovecot -> ../init.d/dovecot
lrwxrwxrwx 1 root root 15 May 25 2007 K56acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 15 May 25 2007 K60crond -> ../init.d/crond
lrwxrwxrwx 1 root root 14 May 25 2007 K61hpoj -> ../init.d/hpoj
lrwxrwxrwx 1 root root 14 May 25 2007 K61ldap -> ../init.d/ldap
lrwxrwxrwx 1 root root 16 May 25 2007 K65kadmin -> ../init.d/kadmin
lrwxrwxrwx 1 root root 15 May 25 2007 K65kprop -> ../init.d/kprop
lrwxrwxrwx 1 root root 16 May 25 2007 K65krb524 -> ../init.d/krb524
lrwxrwxrwx 1 root root 17 May 25 2007 K65krb5kdc -> ../init.d/krb5kdc
lrwxrwxrwx 1 root root 19 May 25 2007 K68rpcidmapd -> ../init.d/rpcidmapd
lrwxrwxrwx 1 root root 17 May 25 2007 K69rpcgssd -> ../init.d/rpcgssd
lrwxrwxrwx 1 root root 16 May 25 2007 K72autofs -> ../init.d/autofs
lrwxrwxrwx 1 root root 16 May 25 2007 K73ypbind -> ../init.d/ypbind
lrwxrwxrwx 1 root root 14 May 25 2007 K74apmd -> ../init.d/apmd
lrwxrwxrwx 1 root root 20 May 25 2007 K74lm_sensors -> ../init.d/lm_sensors
lrwxrwxrwx 1 root root 14 May 25 2007 K74nscd -> ../init.d/nscd
lrwxrwxrwx 1 root root 14 May 25 2007 K74ntpd -> ../init.d/ntpd
lrwxrwxrwx 1 root root 16 May 25 2007 K74ypserv -> ../init.d/ypserv
lrwxrwxrwx 1 root root 16 May 25 2007 K74ypxfrd -> ../init.d/ypxfrd
lrwxrwxrwx 1 root root 15 May 25 2007 K75netfs -> ../init.d/netfs
lrwxrwxrwx 1 root root 14 May 25 2007 K84bgpd -> ../init.d/bgpd
lrwxrwxrwx 1 root root 16 May 25 2007 K84ospf6d -> ../init.d/ospf6d
lrwxrwxrwx 1 root root 15 May 25 2007 K84ospfd -> ../init.d/ospfd
lrwxrwxrwx 1 root root 14 May 25 2007 K84ripd -> ../init.d/ripd
lrwxrwxrwx 1 root root 16 May 25 2007 K84ripngd -> ../init.d/ripngd
lrwxrwxrwx 1 root root 19 May 25 2007 K85mdmonitor -> ../init.d/mdmonitor
lrwxrwxrwx 1 root root 15 May 25 2007 K85mdmpd -> ../init.d/mdmpd
lrwxrwxrwx 1 root root 15 May 25 2007 K85zebra -> ../init.d/zebra
lrwxrwxrwx 1 root root 17 May 25 2007 K86nfslock -> ../init.d/nfslock
lrwxrwxrwx 1 root root 16 May 25 2007 K87auditd -> ../init.d/auditd
lrwxrwxrwx 1 root root 14 May 25 2007 K87ipmi -> ../init.d/ipmi
lrwxrwxrwx 1 root root 20 May 25 2007 K87irqbalance -> ../init.d/irqbalance
lrwxrwxrwx 1 root root 20 May 25 2007 K87multipathd -> ../init.d/multipathd
lrwxrwxrwx 1 root root 17 May 25 2007 K87portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root 16 May 25 2007 K88opensm -> ../init.d/opensm
lrwxrwxrwx 1 root root 16 May 25 2007 K88syslog -> ../init.d/syslog
lrwxrwxrwx 1 root root 15 May 25 2007 K89iscsi -> ../init.d/iscsi
lrwxrwxrwx 1 root root 18 May 25 2007 K89netplugd -> ../init.d/netplugd
lrwxrwxrwx 1 root root 19 May 25 2007 K90bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root 17 May 25 2007 K90network -> ../init.d/network
lrwxrwxrwx 1 root root 14 May 25 2007 K91isdn -> ../init.d/isdn
lrwxrwxrwx 1 root root 22 May 25 2007 K92arptables_jf -> ../init.d/arptables_j
f
lrwxrwxrwx 1 root root 19 May 25 2007 K92ip6tables -> ../init.d/ip6tables
lrwxrwxrwx 1 root root 18 May 25 2007 K92iptables -> ../init.d/iptables
lrwxrwxrwx 1 root root 18 May 25 2007 K94diskdump -> ../init.d/diskdump
lrwxrwxrwx 1 root root 15 May 25 2007 K95kudzu -> ../init.d/kudzu
lrwxrwxrwx 1 root root 16 May 25 2007 K96pcmcia -> ../init.d/pcmcia
lrwxrwxrwx 1 root root 18 May 25 2007 K99cpuspeed -> ../init.d/cpuspeed
lrwxrwxrwx 1 root root 23 May 25 2007 K99microcode_ctl -> ../init.d/microcode_
ctl
lrwxrwxrwx 1 root root 19 May 25 2007 K99readahead -> ../init.d/readahead
lrwxrwxrwx 1 root root 25 May 25 2007 K99readahead_early -> ../init.d/readahea
d_early
lrwxrwxrwx 1 root root 17 May 25 2007 K99sysstat -> ../init.d/sysstat
lrwxrwxrwx 1 root root 17 May 25 2007 S00killall -> ../init.d/killall
lrwxrwxrwx 1 root root 14 May 25 2007 S01halt -> ../init.d/halt


Can I manually delete all the files in /tmp before running shutdown command(instead of adding the removal command in the script under /etc/rc0.d)?

Regards,
Kosys

Last edited by kosys; 12-28-2007 at 11:57 PM.
 
Old 12-29-2007, 12:45 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by kosys View Post

Can I manually delete all the files in /tmp before running shutdown command(instead of adding the removal command in the script under /etc/rc0.d)?
Yes, you can. The potential problem is that some daemon might need information in one of the files in /tmp and fail to shutdown properly. So the best thing to do is clean /tmp as late in the shutdown process as possible.

One of the last things that is done in shutdown is to mount / as read only to make sure that all write buffers are written out before shutdown. You can't delete anything after / is mounted read only so /tmp has to be cleaned before / is mounted read only.


Quote:
Originally Posted by kosys View Post
....

As per your suggestion I checked out the scripts under /etc/rc0.d but could't found one that mounts / as readonly.
I'm giving the list of the scripts under /etc/rc0.d. Can you please check out(by the script name) and tell me which is the script that mounts / as readonly which I can edit to clean /tmp.
I don't have Red Hat installed so I can't look through the individual scripts. The scripts are run in alphabetical order and the one you are looking for should be very near the end. If you put the script after / is mounted read only then you will simply get an error message saying that you can't delete files on a read only file system. So I would try placing the commands at the beginning of S01halt. If that doesn't work try the beginning of S00killall, and so on.

----------------------
Steve Stites

Last edited by jailbait; 12-29-2007 at 12:46 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-17-2007 11:26 PM
Problem deleted all files in /tmp as root and can't start fedora 5 in Graphic mode meelmaar Linux - General 3 08-22-2006 02:33 AM
gconfd uses /tmp not ~ true_atlantis Linux - Software 0 07-22-2006 03:10 PM
'funny' files in /tmp/orbit-root/ tom_from_van Linux - Security 5 07-26-2005 02:30 PM
Root directories /tmp, /var, /etc ninmonkeys Linux - General 7 11-21-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration