12-09-2010
init phase
Hello,
Can somebody explain me the relationship between /sbin and /etc directories ? what is the relationship between them and what are the roles of files such as rcd.1 etc?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Expert,
I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0..
I can only reboot the system using reboot ... Was... (6 Replies)
Discussion started by: sc2005
6 Replies
2. Linux
Dear all,
I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel):
1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins
So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Discussion started by: z1dane
8 Replies
3. Red Hat
What is the difference between 'init s' and 'init 1'.
I know that both will work to change the current run level to single user mode.
Is there any difference in those two commands? (5 Replies)
Discussion started by: praveen_b744
5 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am experiencing a weird thing on my SUNFIRE machine with Solaris 9 OS.
When I do init 0 to shutdown the machine to go to ok prompt, what it did was shutdown and reboot like an init 6 command do. I did check the corresponding rc scripts that were involved with init 0 and compared with rc... (2 Replies)
Discussion started by: Yenthanh
2 Replies
5. Solaris
i did my research in finding the answer but couldn't find right one. Please give your inputs. (6 Replies)
Discussion started by: ranumala
6 Replies
6. Red Hat
I encountered a problem on one of our database servers.
OS: CentOS 5.5 final
Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel)
We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies
7. War Stories
Next in the pipeline, thinking I will work on postbit (the core of the posts) and try to get Bootstrap and badges working in postbit and not break the quick editors in the post.
Note, I had to turn off the scrollbars in postbit for now because when I turn them on, it breaks the quick editor in... (11 Replies)
Discussion started by: Neo
11 Replies
8. Shell Programming and Scripting
Hi Guys,
Input XML File :-
<managedObject class="RMOD_R" distName="MRBTS-101/X/R-7">
<list name="activeCellsList">
<p>15</p>
<p>201</p>
</list>
<p name="aldManagementProtocol">True</p>
<p name="serialNumber">845</p>
</managedObject>
Output :-
... (5 Replies)
Discussion started by: pareshkp
5 Replies
9. Docker
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies
LEARN ABOUT DEBIAN
class::dbi::relationship
Class::DBI::Relationship(3pm) User Contributed Perl Documentation Class::DBI::Relationship(3pm)
NAME
Class::DBI::Relationship - base class for Relationships
DESCRIPTION
A Class::DBI class represents a database table. But merely being able to represent single tables isn't really that useful - databases are
all about relationships.
So, Class::DBI provides a variety of Relationship models to represent common database occurences (HasA, HasMany and MightHave), and
provides a way to add others.
SUBCLASSING
Relationships should inherit from Class::DBI::Relationship, and provide a variety of methods to represent the relationship. For examples of
how these are used see Class::DBI::Relationship::HasA, Class::DBI::Relationship::HasMany and Class::DBI::Relationship::MightHave.
remap_arguments
sub remap_arguments {
my $self = shift;
# process @_;
return ($class, accessor, $foreign_class, $args)
}
Subclasses should define a 'remap_arguments' method that takes the arguments with which your relationship method will be called, and
transforms them into the structure that the Relationship modules requires. If this method is not provided, then it is assumed that your
method will be called with these 3 arguments in this order.
This should return a list of 4 items:
class
The Class::DBI subclass to which this relationship applies. This will be passed in to you from the caller who actually set up the
relationship, and is available for you to call methods on whilst performing this mapping. You should almost never need to change this.
This usually an entire application base class (or Class::DBI itself), but could be a single class wishing to override a default
relationship.
accessor
The method in the class which will provide access to the results of the relationship.
foreign_class
The class for the table with which the class has a relationship.
args
Any additional args that your relationship requires. It is recommended that you use this as a hashref to store any extra information
your relationship needs rather than adding extra accessors, as this information will all be stored in the 'meta_info'.
triggers
sub triggers {
return (
before_create => sub { ... },
after_create => sub { ... },
);
}
Subclasses may define a 'triggers' method that returns a list of triggers that the relationship needs. This method can be omitted if there
are no triggers to be set up.
methods
sub methods {
return (
method1 => sub { ... },
method2 => sub { ... },
);
}
Subclasses may define a 'methods' method that returns a list of methods to facilitate the relationship that should be created in the
calling Class::DBI class. This method can be omitted if there are no methods to be set up.
perl v5.12.4 2005-09-16 Class::DBI::Relationship(3pm)