Modular rc.sysinit

I have a suggestion that may simplify modifying system initialization, by using something we could call SIMs (for SysInit Modules).
A SIM could simplify system initialization by spliting file rc.sysinit into modules, which could then be enabled or disabled in rc.conf.
By having system initialization modules as separate files, it could be easier for people to improve the overall process.
I have created a feature request and attached to it the relevant files (which I'm using in my ArchLinux installation) so that you guys can have a hands-on experience. It can be found at http://bugs.archlinux.org/task/14569.

rc.sysinit is already 'split' somewhere with things like the 'network' and 'netfs' DAEMONS. Instead of 'violating' KISS and implementing a new process (aka 'SIM'), why not just extend the functionality we already have an use with DAEMONS. I know there's the obvious issue with the fact that we're not strictly speaking about daemons, but we're already doing it with the afore mentioned processes.
Failing that, I'll be the first to suggest the 'network' and 'netfs' daemon scripts become a "SIM"

Similar Messages

  • How to make my code more modular? Please see thread.

    Question
    How do I go about doing something like the example below? Please see example.
    Example of current form
    My current method of painting to a component is as follows:
    public class Pane extends JPanel{
    public void paint(Graphics g){
    ... (all painting is done in here) ...
    }What I want to do is break the painting method into multiple methods and or classes, so my program is less cluttered and more modular. For instance,
    Method 1
    public class Pane extends JPanel{
    public void paintCustomButtons(Graphics g){
    // (all painting of my custom buttons are done in here) ...
    public void paintOtherComponents(2Graphics g){
    // (all other painting is done in here) ...
    }Or should I break it up into classes, the headers of those classes are:
    Method 2
    public class ButtonComponents extends JComponent
    public class OtherComponents extends JComponent
    //and then have a panel that contains all those components like so
    public class Pane extends JPanel{
    Pane(){
    add(ButtonComponents);
    Final Questions
    How can I break my painting code up? Is it possible to do method 1 or 2? If so, which would you suggest? Or would you suggest another way of organizing blocks of code?
    -Thanks for any suggestions as they are much appreciated
    Edited by: watwatacrazy on Feb 6, 2010 10:17 AM

    To break the paint method up you can always do the following:
        @Override
        public void paintComponent(Graphics g) {
            g2d = (Graphics2D) g;
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            paintAxis(g2d);
            paintCrossHair(g2d);
        public void paintCrossHair(Graphics2D g2d) {
         public void paintAxis(Graphics2D g2d) {{
         }Edited by: calypso on Feb 6, 2010 1:39 PM

  • Lack of modularity in Projects for EJB module

    Problem
    For a project you have many enterprise bean components. In JDeveloper, currently, all the information like persistence-type,
    resource-reference, etc reside in the ejb-jar.xml which is project specific.
    (1) In the real-world, developers work on different modules with small individual work spaces with a small number of
    enterprise components and web compoents with a CVS system to manage version of the source code
    (2) The developer works on the source and check it in the CVS repository
    (3) A packager will take components from the CVS repository and make a build for a customer according to the order
    (Build-to-Order approach)
    (4) In JDeveloper he might have to make the ejb-jar.xml again which is very cumbersome and timeconsuming
    Suggestion
    (1) The current system of maintaining ejb-jar.xml in the project is OK
    (2) But the information in the ejb-jar xml ABOUT EACH EJB COMPONENT should also be maintained at the EJB component level like
    a small ejb-jar.xml file specific to the one and only one component.
    (3) Whenever the EJB component id edited, this modular ejb-jar.xml file will be edited too.
    (4) Later while making the main ejb-jar xml for deployment, the info in these small modular xml files will be read, the main
    project level ejb-jar xml will be prepared.
    (5) The main project level ejb-jar.xml can also be prepared when the project is rebuilt (clean/force compile) and all te
    small modular files are updated.
    With regards
    Amit

    Hello,
    Yes we do read every OTN message, though we often have some internal discussion before we post a reply.
    In your specific situation, you could just break up the EJBs into different projects:
    - Each EJB module in a separate project.
    - Each EJB project builds a separate EJB JAR.
    - When assembling the EAR, pull in as many EJB JAR files as necessary to support the WAR and other pieces.
    JDeveloper already has support for the above setup. Starting with JDev 9.0.3, you can also establish dependencies between projects to make the classes built by one project visible to another project's classpath.
    For us to implement a complete solution where small ejb-jar.xml files are merged into one large ejb-jar.xml file, we'd like to understand how you'd go about resolving conflicts in elements being merged:
    - conflicting <method-permission>
    - conflicting <container-transaction>
    - conflicting <relationship-role>
    - conflicting <env-entry>
    - ... a number of other potential conflicts ...
    We could do automatic merges when there are no conflicts. For the situations where there are conflicts, can you describe some solutions that you would consider acceptable?

  • Is it possible to add a device in simulated NI DAQmx device or modular Instrument?

    Hi, 
          I want to simulate PXIe 8115 module without hardware.Is it possible?If Yes Can I add the device in simulated NI DAQmx device or modular Instrument?
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Solved!
    Go to Solution.

    Hm, these are several very basic questions.....
    The controller (8115) is a "complete" computer excluding a housing, power supply and external cooling. The later three components are the chassis, in your case the PXIe-1062Q.
    The controller can be run by a Windows based OS (e.g. Windows 7) or Real Time ("RT"). So what do you have installed on the 8115?
    In either case, communication with that controller by an external, additional PC or laptop is best done by Ethernet. You can use different protocols on Ethernet like a customized TCP/IP based protocol or by using NI Shared Variables.
    NI DAQmx is a hardware device driver. The purpose of this is to use a National Instrument based measurement device in a computer. If you want to use an NI device in your PXIe system, it is very likely that you require to have DAQmx installed on the 8115 controller. DAQmx is available for Windows as well as for RT.
    DAQmx in this use-case does normally not provide you a direct access to the devices in the PXIe chassis over Ethernet by *any* external computer. You have to write an application which will be run on the 8115 controller to interface (or "relay) the data to your external computer.
    hope this clears things up,
    Norbert
    PS: You should ask your local NI branch to send someone to you.... i think a direct discussion with an NI employee should be beneficial for you. Normally, a sales representative is sufficient as NI sales reps are quite technical.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Is this how to program an algorithm which uses modular arithmatic?

    if ( (x-a)^n is not (x^n-a) (mod x^r-1,n) ) then output COMPOSITE
    from [http://primes.utm.edu/prove/prove4_3.html|http://primes.utm.edu/prove/prove4_3.html]
    a, n, and r are define variables. x is part of a polynomial (I'll use this to handle the polynomial type variables). My question is, how do I program for modular arithmetic? Does this do what the above pseudocode does?
    [ (x-a)^n]-[(x^n-a)]% (x^r-1) != 0 && [ (x-a)^n]-[(x^n-a)]% (n) != 0
    I know that a=b(mod x) means a-b is a multiple of x. Therefore I reason the above statment is correct. I assume the coma in the (mod x^r-1,n) means that (x-a)^n is neither congruent to x^r-1 nor congruent to a.
    I'd just try this out to see if it works, but if it doesn't then I wouldn't be sure if it's this piece of code, or another problem in my program which I causing problems. That's why I ask. Plus if this isn't the way it works then I have no clue how to do this.
    Thanks a lot people

    ok I'm going to emberass myself with this question now. I read the [API for polynomails|http://www.control.lth.se/~kurstr/InternDator/java/regler/se/lth/control/algorithms/Polynomial.html#Polynomial(int,%20double[])] and I can't figure out how to use the polynomials in a program. i.e. I go:
    import se.lth.control.algorithms.BasePolynomial;and when I compile I get the error "package se.lth.control.algorithms.BasePolynomial does not exits". What do I do now? I know this is a lame question, but I basically taught myself that I import whatever is written at the top beneath the bold faced type, when reading the classes API. Anyone want to clue me in on how stuff actually works?
    Edited by: bean-planet on Jul 17, 2008 4:33 PM
    Oh I see now, that's not actually part of Sun's website, it only looks similar. I guess that would explain why the package didn't come with the IDE I'm using. Am I write or just more confused? Can anyone figure out how to download the package so that I can actually use it?
    Edited by: bean-planet on Jul 17, 2008 7:13 PM

  • HT1190 Nord Modular g2 demo, MAC OS x 10.7.4

    helo i have mac os x 10.7.4, i want to make nord modular g2 ( http://www.clavia.se/products/nordmodular/demo.htm ) work. but it says: the PowerPC architecture is no longer supported. can somebody help me?

    The demo(v1.40) does require the older OS, but the software(v1.62) for the keyboard does work on the latest Mac OS.  I have a G2 and the software runs fine on my Macbook Pro running 10.7.4.  I also run Windows Vista 64 in parallels and the demo(v1.40) works fine there. 
    You can run the actual software(v1.62) without the keybard to look at the modules or some patches, but you won't be able to hear anything since it needs the keyboard for the sounds.

  • How Do I create a Modular Function for use with Event Listeners

    OK I'm very new to AS3 and I'm curious as to how to get
    modular functions to work in AS3.
    for instance if I have this code:
    function snowfall(snowflake:MovieClip, movement:Number):void
    snowflake.y = movement;
    snowfall(snowflake1_mc, 10);
    snowfall(snowflake2_mc, 20);
    snowfall(snowflake3_mc, 30);
    Now on the stage I place 3 instances of a snowflake movie
    clip. Each time I call the "snowfall" function I refer to a new
    instance of the snowflake movie clip and a different amount of
    movement along the y axis.
    This is great but what if I want to use a button to control
    these snowflake movie clips and I want to maintain that modular
    nature? I don't really get how to do this. I created a button with
    an instance name of "myButton" and I've tried this code but it is
    throwing an error I don't really understand:
    myButton.addEventListener(MouseEvent.CLICK,
    snowfall(snowflake3_mc, 30));
    Can I not pass information to a function using an
    EventListener?

    Hi --
    What you want to do on your button is this..
    myButton.addEventListener(MouseEvent.CLICK,snowfall)
    Then in the function you can check which button called the
    function using
    properties of the event..
    function snowfall(event:MouseEvent) {
    trace(event)
    I am not sure off the top of my head of the data available in
    the "event"
    but the trace will show you all the variables you can access.
    As far as the amount of movement -- how is this information
    set? You can
    keep this in a global variable and then read it from inside
    the event
    handler rather than needing to pass it to the event.
    Rich
    "HalcyonCollective" <[email protected]>
    wrote in message
    news:fl695r$l95$[email protected]..
    > OK I'm very new to AS3 and I'm curious as to how to get
    modular functions
    > to
    > work in AS3.
    >
    > for instance if I have this code:
    >
    >
    function snowfall(snowflake:MovieClip, movement:Number):void
    > {
    > snowflake.y = movement;
    > }
    >
    > snowfall(snowflake1_mc, 10);
    > snowfall(snowflake2_mc, 20);
    > snowfall(snowflake3_mc, 30);
    >
    > Now on the stage I place 3 instances of a snowflake
    movie clip. Each time
    > I
    > call the "snowfall" function I refer to a new instance
    of the snowflake
    > movie
    > clip and a different amount of movement along the y
    axis.
    >
    > This is great but what if I want to use a button to
    control these
    > snowflake
    > movie clips and I want to maintain that modular nature?
    I don't really get
    > how
    > to do this. I created a button with an instance name of
    "myButton" and
    > I've
    > tried this code but it is throwing an error I don't
    really understand:
    >
    >
    myButton.addEventListener(MouseEvent.CLICK,
    snowfall(snowflake3_mc,
    > 30));
    >
    > Can I not pass information to a function using an
    EventListener?
    >

  • Using modular functions with movieclips

    hi guys, this morning i was looking a tutorial that shows how to make modular functions, the user only used numbers, i was wandering if there is a way to use this with movieclips or childs.
    The example was:
    function addNumber(num1:Number,  num2:Number,  num3:Number):void
    trace(num1+num2*num3);
    addNumber(3, 4, 7);
    i tried using a movieclip called cuadro and triying to move on the x axis, but it didnt work out:
    function mObj(obj1:MovieClip,  num1:Number):void
    obj1.x = num1;
    addNumber(cuadro, 50);
    any sugestion?
    thnks in advance

    oh sorry my bad, i was trying another stuff
    i know that the last line must say
    mObj(cuadro, 50);
    what im trying to do is use the function with some objects in the stage, and for example when i press the first button, it will write mObj(cuadro1, 50) , button2  mObj(cuadro2, 80), so i can use the same function for diferents objects

  • Changing data in planning modular

    hi
    i have created the planning function type rsplf1.
    in planning modular i have actual and planning cube .
    the standard 0quantity is used in both the cube.
    how do i process my actual qty in actual cube and store them to planning cube.
    since i used the 0quantity in both cube how do i differentiate the quantity in my coding.
    can any one provide step by step process for this.
    thanks in advance.

    Hi Ram,
    Theres a requirement of a similar kind for us to process the content of the planning cube and write the new data back to the cube.
    We need to create a new planning function type in rsplf1 and write our own code on the EXEC method.
    Any idea just how to go about it which would be of great help to us.
    Rgds
    Syam

  • HP StorageWor​ks 20 Modular Smart Array Support / 335921-B1 storage

    hey Friends...
    i have a storage - HP StorageWorks 20 Modular Smart Array Support / 335921-B1 storage and i have changed the storage connection with other Server..but my problem is driver....when i check device manager it seems HP U320/sata bulk 1 SCSI ARRAY DEVICE  hasnt a drive...so i cant connect my storage.
    i need help about it. best regards.

    Hi:
    You may also want to post your question on the HP Business Support Forum -- Disk Array section.
    http://h30499.www3.hp.com/t5/Disk-Array/bd-p/itrc-​195#.UqtyU-l3u9I

  • A new archlinux modular livecd

    godane wrote:
    Arch-live is a modular live cd/usb system based on a slax/zenlive like modular design. The goal of the project is to make a live system that will be easier to update then the current arch live system. The current live system are one big squashfs file with 2 or 3 smaller files for some change files. This is not a good modular design since you can't add a program without compressing the whole system again.   
    I also want the arch kernel to be used but the initrd/initrramfs needs to be a ext2 gzip file for the linux-live scripts to work. Ext2 is not build-in the kernel so the only way to do it is somehow make the arch initramfs load the arch-live initramfs has root filesystem. So if someone can help with me making the linux-live scripts more arch initramfs compatible that would be great.
    user: root
    user: ArchLinux
    I hope this helps everyone.
    Main update forum post:
    http://bbs.archlinux.org/viewtopic.php?id=43892
    I'm posting it here too cause I think newbies will like the modular livecd more.
    Here is a list of programs in arch-live:
    office:
    * abiword
    * epdfview (pdf viewer)
    * xchm (xchm viewer)
    multimedia:
    * Asunder ( a cd ripper)
    * Avidemux (a simple video editor and encoder)
    * audacious (A music player)
    * brasero (a cd burner)
    * gtkpod (to add music and video to you ipod or copy them from you ipod to hard drive)
    * gnome-mplayer (a front-end to mplayer)
    * miro (The free and open source internet TV platform)
    graphics:
    * comix (a comic book viewer)
    * GIMP (a photo editor)
    * gThumb ( a photo viewer)
    development:
    * geany (A fast and lightweight IDE)
    * kompozer (a web page designer)
    network:
    * transmission & deluge (both bittorrent app)
    * gftp (A multithreaded ftp client for X windows)
    * firefox (web browser)
    * thunderbird (email client)
    * pidgin (IM client)
    * urlgfe (download manager)
    * wicd (wired and wireless configuration  gui)
    others:
    * isomaster ( a iso editor)
    * catfish (a gui search tool)
    * VirtualBox (Powerful x86 virtualization for enterprise as well as home use)
    The iso is update to 20080312. There is a module to update it to 20080312 cause some of the packages didn't get installed for 20080312 iso.
    I hope this helps people get more interest in the project.

    前来支持!

  • Intel Modular Server Question

    Hi,
    I have an Intel  MFSYS35 Modular Server with MFS5520VIB compute modules. Currently, I have 1TB hard drives installed. I was looking to upgrade to 3TB or possibly 4TB drives. Are only certain models compatible?
    Thanks,
    This topic first appeared in the Spiceworks Community

    Hi,
    I have an Intel  MFSYS35 Modular Server with MFS5520VIB compute modules. Currently, I have 1TB hard drives installed. I was looking to upgrade to 3TB or possibly 4TB drives. Are only certain models compatible?
    Thanks,
    This topic first appeared in the Spiceworks Community

  • Splitting huge Schema/E-R Model into Modular Schema/Multiple E-R Models

    Hi,
    Currently we have huge DB Schema (1500+ Tables) using 1 single OWNER ID.
    Based on Domain Partitioning,we intend to create 6 new OWNER IDs (based on individual Module/Domain)
    and re-assign the appropriate Tables into the respective Domain.
    basically we expect 1500 Tables under one OWNER ID would now be split
    into 250 Tables per OWNER ID with a total of 6 new OWNER IDs being created.
    We also will need to create 6 new E-R Models ,1 per OWNER ID
    Trying to find out what could be the best possible way to do the "splitting" of a
    linear huge Data Model, into 6 modular E-R models. Going forward, we would like
    to maintain individual Models on per Domain basis rather than the existing monolithic Model.
    Any suggestions or tips on achieving this using SQL Developer Data Modeler would be greatly appreciated.
    What is the best and clean way of achieving this
    Thanks
    Auro

    Hi Auro,
    first you should be aware that you can have foreign keys created only between tables in one model.
    If this is not restriction for you then you can proceed:
    1) create one subview per future model and put in each subview tables that will constitute the model
    2) each model in separate design
    - use "Export>To Data modeler Design" - select subview that you want to export and only objects belonging to that subview will be exported
    Philip

  • Initscripts 2011.10.2-1 / rc.sysinit Issues on Bootup

    Since upgrading initscripts from version 2011.07.3-1 to 2011.10.2-1, the following messages appear during the bootup process:
    /etc/rc.sysinit: line 35: minilogd: command not found
    /usr is not mounted. This is not supported.
    Attached is the following screen capture from bootup:

    Raynman wrote:Did you read the messages (especially the second)?
    Of course, did you?
    Raynman wrote: Do you have a concrete question?
    No, this is only an observation which might prove useful for others to see.
    Last edited by ejmarkow (2011-10-23 11:57:34)

  • Bootup: long delay before sysinit.target.

    My system seems to have a strange delay during boot that I don't know how to account for. In the SVG plot, there is a long delay before `sysinit.target` comes on, but it doesn't seem that anything is blocking it.
    Also, systemd-blame shows everything starting prety quickly.
    1.332s lightdm.service
    1.255s systemd-logind.service
    1.254s avahi-daemon.service
    1.150s systemd-update-utmp.service
    539ms NetworkManager.service
    437ms [email protected]
    393ms accounts-daemon.service
    360ms systemd-udev-trigger.service
    323ms systemd-tmpfiles-setup.service
    316ms systemd-vconsole-setup.service
    316ms dev-hugepages.mount
    316ms dev-mqueue.mount
    316ms sys-kernel-debug.mount
    295ms kmod-static-nodes.service
    276ms ntpd.service
    231ms systemd-sysctl.service
    224ms [email protected]
    216ms systemd-user-sessions.service
    176ms polkit.service
    170ms systemd-journal-flush.service
    127ms systemd-random-seed.service
    127ms rtkit-daemon.service
    111ms upower.service
    98ms colord.service
    90ms sys-kernel-config.mount
    82ms systemd-backlight@acpi_video0.service
    67ms sys-fs-fuse-connections.mount
    66ms systemd-tmpfiles-setup-dev.service
    55ms wpa_supplicant.service
    53ms dev-sda2.swap
    33ms alsa-restore.service
    30ms udisks2.service
    3ms systemd-remount-fs.service
    2ms tmp.mount
    2ms systemd-udevd.service
    2ms systemd-tmpfiles-clean.service
    And here is what the journal says in that time gap (nothing):
    Dec 26 07:39:51 yvne systemd[1]: Starting Swap.
    Dec 26 07:39:51 yvne systemd[1]: Reached target Swap.
    Dec 26 07:40:26 yvne systemd[1]: Starting System Initialization.
    Dec 26 07:40:26 yvne systemd[1]: Reached target System Initialization.
    Last edited by shawnjgoff (2013-12-26 13:13:19)

    My system seems to have a strange delay during boot that I don't know how to account for. In the SVG plot, there is a long delay before `sysinit.target` comes on, but it doesn't seem that anything is blocking it.
    Also, systemd-blame shows everything starting prety quickly.
    1.332s lightdm.service
    1.255s systemd-logind.service
    1.254s avahi-daemon.service
    1.150s systemd-update-utmp.service
    539ms NetworkManager.service
    437ms [email protected]
    393ms accounts-daemon.service
    360ms systemd-udev-trigger.service
    323ms systemd-tmpfiles-setup.service
    316ms systemd-vconsole-setup.service
    316ms dev-hugepages.mount
    316ms dev-mqueue.mount
    316ms sys-kernel-debug.mount
    295ms kmod-static-nodes.service
    276ms ntpd.service
    231ms systemd-sysctl.service
    224ms [email protected]
    216ms systemd-user-sessions.service
    176ms polkit.service
    170ms systemd-journal-flush.service
    127ms systemd-random-seed.service
    127ms rtkit-daemon.service
    111ms upower.service
    98ms colord.service
    90ms sys-kernel-config.mount
    82ms systemd-backlight@acpi_video0.service
    67ms sys-fs-fuse-connections.mount
    66ms systemd-tmpfiles-setup-dev.service
    55ms wpa_supplicant.service
    53ms dev-sda2.swap
    33ms alsa-restore.service
    30ms udisks2.service
    3ms systemd-remount-fs.service
    2ms tmp.mount
    2ms systemd-udevd.service
    2ms systemd-tmpfiles-clean.service
    And here is what the journal says in that time gap (nothing):
    Dec 26 07:39:51 yvne systemd[1]: Starting Swap.
    Dec 26 07:39:51 yvne systemd[1]: Reached target Swap.
    Dec 26 07:40:26 yvne systemd[1]: Starting System Initialization.
    Dec 26 07:40:26 yvne systemd[1]: Reached target System Initialization.
    Last edited by shawnjgoff (2013-12-26 13:13:19)

Maybe you are looking for