/etc/rc.*, /etc/rc.d/{functions, dhcpdc, inittab}, more files gone

Not sure which forum to post this in.  A number of my /etc/rc.* files, a number of the daemons I have in rc.d, /sbin/minilogd, and a few other system files simply vanished today.  I restarted today, just as a matter of course because every couple weeks I reboot, and got the promt:
Enter Runlevel:
This seemed really bad.  I made a live boot usb key (its an eee laptop), found the missing files, rebuilt my rc.conf to the best of my memory, ran dhcpcd out of sbin.  And things, other than the files I replaced seem more or less OK.  But this is very very strange.  The only significant action I have taken with my computer recently is to install skype.  Other than that I have been programming a rails application, but it should have no interaction whatsoever with /etc, and I never run any part of it as root.
Does anyone have any idea what might have caused this?  Have I gotten linux malware?  I have my data backed up, so I /could/ reinstall, but I also really like my config and just got it to my liking about a month ago so I do not want to reinstall.  I don't believe its a corrupt hard drive (it has shown no other signs of being so).  Any ideas would be appreciated.
Also I am wondering if anyone knows how to reinstall just the dhcpcd script in /etc/rc.d ... the binary is still there but I cant start it via rc.conf without the rc.d script, and that is very annoying. [EDIT] I restored the dhcpcd script, and it now complains there is no /etc/init.d/functions file.  So I restored that and it complains there is no /etc/sysconfig/network file.  I'm sure I can restore this too, but this is a weirder and weirder number of files to be gone, but they seem to be loosely network themed... I suspect I can google around for that though, my main question is: does anyone know what in the world or why in the world this might have suddenly happened to my computer?
[EDIT]: Actually the entire /etc/sysconfig directory is gone (assuming it was there in the first place and I didnt download a non-archy dhcpcd rc.d script)
Last edited by drostin77 (2009-09-06 09:27:41)

Daenyth, thats a pro pacman command   Thanks
Everything appears to be working  when the computers running (ok, i basically just listen to music browse the web, run a ruby server and spend a lot of time in VIM on this computer, so I havent tested thoroughly).  However, when rebooting I get the "is going to reboot NOW! message, then it just stops.  If I hit power in this state, uswsusp kicks in and hibernates my computer, thats an acpi event triggering a little shell script so... clearly the computer has not stopped everything when it claims its going to reboot NOW!  Any clues on the reboot stall? (pacman update completed, yaourted or recompiled from source all but some trivial packages that were non-packman).

Similar Messages

  • How to move the custom hooks in /etc/rc.d/functions.d to systemd

    I have a few scripts placed in /etc/rc.d/functions.d that were launched during the boot process.
    Now I moved to systemd but I have not found any documentation about how to implement those hooks in the new boot process. As far as I got I need to write customs .service files, but again I lack of infos about how..
    Can anybody teach me a bit about this or link some documentation?
    Many thanks

    Ok, I think I need some help here.
    I want to call the acpi_call kernel module to switch off the nvidia discrete card at boot. Usually I did that with
    # echo '\_SB.PCI0.PEG1.GFX0._ON' > /proc/acpi/call
    I wrote the following /etc/systemd/system/nvidia_off.service:
    [Unit]
    Description=acpi_call to switch off nvidia discrete graphic
    [Service]
    Type=simple
    ExecStart=/bin/echo '\_SB.PCI0.PEG1.GFX0._OFF' > /proc/acpi/call
    ExecStop=/bin/echo '\_SB.PCI0.PEG1.GFX0._ON' > /proc/acpi/call
    [Install]
    WantedBy=multi-user.target
    but testing with:
    #systemctl start nvidia_off.service
    #systemctl stop nvidia_off.service
    seems no effective. No output is produced but there is no effect on the power consumption which should be several watts lower.
    I also take a look at sysctl but it seems to control only /proc/sys/anything while my module is under /proc/acpi
    Any suggestion?
    thanks in advance

  • A bug in /etc/rc.d/functions; and the release policy

    This is a small issue, but how it relates to Arch's release policy is important.
    I have CONSOLE="ter-120b" in my rc.conf, and I got following screen on startup. The message about console font is overwritten by the next message. Additionally, the right side is "[BUSY]".
    http://i795.photobucket.com/albums/yy24 … ot/bad.png
    It turned out to be a bug in the set_consolefont, in /etc/rc.d/functions:
    if (($? != 0)); then
    stat_fail
    elif [[ $CONSOLEMAP ]]; then
    cat <<"EOF" >>/etc/profile.d/locale.sh
    if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033(K"; fi
    EOF
    stat_done
    fi
    stat_done is not called on the implicit "else" branch. The fix is easy:
    if (($? != 0)); then
    stat_fail
    else
    if [[ $CONSOLEMAP ]]; then
    cat <<"EOF" >>/etc/profile.d/locale.sh
    if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033(K"; fi
    EOF
    fi
    stat_done
    fi
    The effect is shown here.
    http://i795.photobucket.com/albums/yy24 … t/good.png
    However, that made me think about Arch's release policy. The latest release is 2010.5, 10 months ago. That usually doesn't matter that much, as Arch is a rolling release distro, and the CD image is really light. However, now and then we may spot bugs in scripts like /etc/rc.d/functions, which come with the CD and remain untouched by pacman. Will it be better if we follow Gentoo's approach, generating installation media every few days, putting latest software (and more importantly for Arch) and fixed scripts in it?
    PS. I'd love to remove some black area in the screenshots, but I can't figure out how to do it with GIMP. Help on this is also appreciated.
    Last edited by jasonwryan (2011-03-09 06:44:53)

    tomk wrote:
    xiaq wrote:now and then we may spot bugs in scripts like /etc/rc.d/functions, which come with the CD and remain untouched by pacman.
    You are mistaken. /etc/rc.d/functions is provided by the initscripts package, which has been updated four times since the 2010.05 release. The current version is 2011.02.1.
    I suggest you submit the bug and your patch in the normal way, so that it is handled correctly.
    All right, so I'm firing a bug report and send in my patch there. I have also found that /etc/rc.d/functions has some style problems. It uses a mix of space and tab for indentation, and the misleading modeline option "ts=2" (ts means "tabstop") makes the code look terrible. I have tried several values, and ts=8 turned out fine(most likely the author use this setting and don't use vim). The code is still inconsistent in style, though. So I'm going to clean up the style too. Is that okay as long as I don't break something?

  • [Solved] Boot error: /etc/rc.d/functions /etc/netcfg doesn't exist

    Hi everybody,
    Well, after a bit of playing around, wiki reading and trouble-shooting, i now have an automatic wireless connection at boot via netcfg2 and my wireless profile. Great stuff.
    By the way, whoever wrote this: http://wiki.archlinux.org/index.php/Net … _netcfg_v2, you deserev a medal.
    Anyway, to the problem. I get an error message at boot which informs me that there is an error in my /etc/rc.d/functions file at line 155, stating that /etc/rc.d/netcfg doesn't exist (which is correct).
    However, when I look at the functions file, I cannot for the life of me see the problem.
    Line 155 is: /etc/rc.d/$1 start
    154 start_daemon() {
    155 /etc/rc.d/$1 start
    These are my daemons:
    DAEMONS=(syslog-ng cups hal avahi-daemon sshd snmpd xinetd portmap netcfg net-profiles)
    The obvious thing would be a problem with the netcfg daemon, but everything works ok, so go figure.
    The only real reference i found was this:
    http://www.archlinux.org/pipermail/arch … 03699.html
    I'm fine with an optional dep - how about we throw a comment above
    'NETWORKS' and have rc.sysinit throw a warning it NETWORKS is defined
    but /etc/rc.d/netcfg isn't found?
    Any help appreciated.
    richs-lxh
    Last edited by richs-lxh (2008-09-02 12:09:51)

    Damn! I had a feeling it was going to be an easy one. I am pretty sure I tried that, oh well.
    Thanks for the quick replies men. Thread marked as [Solved]
    richs-lxh
    Last edited by richs-lxh (2008-09-02 12:10:15)

  • Hi I'm new to Mac. I have a macbook air and for some reason the top keys, ec, f1 etc etc are not functioning and emitt the non function noise when pressed. Also the volume keys don't adjust the volume. Have I done something to disable them?

    Hi I'm new to Mac. I have a macbook air and for some reason the top keys, ec, f1 etc etc are not functioning and emitt the non function noise when pressed. Also the volume keys don't adjust the volume. Have I done something to disable them?

    I don't have the same version of OS X here but try System Preferences>Keyboard. Is there an option similar to "Use the F1, etc, keys as standard function keys"?
    If so, and it has a checkmark, uncheck it & see if that does the trick.
    ~Lyssa

  • /etc/openvpn/update-resolv-conf': No such file or directory

    Hi,
    First, sorry if this isn't the right section. I was quite hesitant on which one to post in.
    I was using OpenVPN a few months ago, it was working great. I left it aside during a moment because I didn't need it.
    Recently, I tried to connect to the VPN server I used to use (a friend's server, which is still up and running, I can connect with no problem on my Windows session with openvpn-gui), but I was getting this error each time I tried to connect.
    Here's my command line with the error:
    [brendan@Archisen openvpn]$ openvpn --config client.conf
    Options error: --up script fails with '/etc/openvpn/update-resolv-conf': No such file or directory
    Options error: Please correct this error.
    Use --help for more information.
    [brendan@Archisen openvpn]$
    client.conf
    # Client
    client
    dev tun
    proto tcp
    remote 62.210.207.73 443
    resolv-retry infinite
    cipher AES-256-CBC
    # Cles
    ca ca.crt
    cert brendan.crt
    key brendan.key
    tls-auth ta.key 1
    # Securite
    nobind
    persist-key
    persist-tun
    comp-lzo
    verb 3
    script-security 3 system
    up /etc/openvpn/update-resolv-conf
    If I remove the "up /etc/openvpn/update-resolv-conf" line, OpenVPN doesn't output any error, but I can barely resolve any domain name.
    Do you have an idea on how to fix this?
    Thanks.

    Please post your oracle's .bash_profile.Please have a quick glance at my .bash_profile
    ============================================
    [root@localhost ~]# cat /home/oracle/.bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    ###########oracle variables#############
    echo "welcome to oracle";
    ORACLE_BASE=/u01/app/oracle
    ORACLE_OWNER=oracle;export ORACLE_OWNER
    ORACLE_SID=sai10g
    ORACLE_TERM=xterm; export ORACLE_TERM
    LD_LIBRARY_PATH=$ORACLE_HOME/db_1/lib ; export LD_LIBRARY_PATH
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export DISPLAY=:0.0
    PATH=$PATH:$ORACLE_HOME/db_1/bin
    export ORACLE_BASE ORACLE_HOME PATH ORACLE_SID
    ########## End of Oracle Variables############
    =============================================
    and also .bashrcHere is .bashrc
    ==================
    [root@localhost ~]# cat /home/oracle/.bashrc # .bashrc
    # User specific aliases and functions
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi
    ====================
    Can anyone have a quick glance at this and let me know what is the problem and how to solve it?

  • LOVE Firefox! I have just launched a website. One designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs.

    LOVE Firefox! I have just launched a website: www.animalhealingandhumans.com. My web designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs. How can I achieve a much better response time to good feedback?

    Hello binbingogoABC,
    Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
    Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
    I'm very grateful that you wrote to us with your concerns.
    Sincerely,

  • My iphone 4 is stuck in super large screen view. tried rebooting, syncing, restore, shutting down etc. my grandson 'enlarged' the view more than is normally possible. Help please!

    My iphone 4 is stuck in super large screen view. tried rebooting, syncing, restore, shutting down etc. my grandson 'enlarged' the view more than is normally possible. Help please!

    Thank you for the prompt and correct reply, I'm now back in the land of the living and will now cancel my genius bar reservation at my local Apple store. Thanks again R.

  • [Solved] -bash: /etc/profile.d/bash_completion.sh: No such file or ...

    Hi all.
    Did a pacman -Syu yesterday, havn't done this for a while. After this, whenever starting a login shell, I'm getting the following:
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    It seems to be caused by sourcing /etc/profile. Now, my /etc/profile hasn't been changed.
    [ndlarsen@slave ~]$ . /etc/profile
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    [ndlarsen@slave ~]$ pacman -Qo /etc/profile
    /etc/profile is owned by filesystem 2009.07-1
    [ndlarsen@slave ~]$ pacman -Ss filesystem | grep core/filesystem
    core/filesystem 2009.07-1 (base)
    [ndlarsen@slave ~]$ pacman -Qk filesystem
    filesystem: 89 total files, 0 missing file(s)
    [ndlarsen@slave ~]$ pacman -Q bash-completion
    bash-completion 1.0-3
    [ndlarsen@slave ~]$ pacman -Ss bash-completion
    extra/bash-completion 1.0-3
    Programmable completion for the bash shell
    [ndlarsen@slave ~]$ pacman -Qk bash-completion
    bash-completion: 45 total files, 0 missing file(s)
    Now, I'm wondering if this is a bug or feature and what to do about it.
    Cheers.
    Last edited by ndlarsen (2009-10-30 12:32:54)

    Correct, seems to be caused by /etc/profile.bash, which I neither have messed with, though difers for some reason.
    [ndlarsen@slave ~]$ . /etc/profile.bash
    -bash: /etc/profile.d/bash_completion.sh: No such file or directory
    [ndlarsen@slave ~]$ wget -O profile.bash http://repos.archlinux.org/wsvn/packages/bash/repos/core-i686/profile.bash?op=dl&rev=0
    [ndlarsen@slave ~]$ diff profile.bash /etc/profile.bash; echo ..Done...
    25a26,29
    >
    > #. bash_completion
    > . /etc/profile.d/bash_completion.sh
    >
    ..Done...
    [ndlarsen@slave ~]$ pacman -Qo /etc/profile.bash
    /etc/profile.bash is owned by bash 4.0.033-1
    [ndlarsen@slave ~]$ pacman -Q bash
    bash 4.0.033-1
    Wonder if the devs have made changes to the svn entries.
    Last edited by ndlarsen (2009-10-30 10:57:11)

  • Calling an external C function from a C file in JNI

    Hello,
    I am trying to call an external C function, from a C file which is being called by a Java file. I am getting an unresolved symbol error. I have tried many things like, making the external C function in the format of JNI, etc, etc. It is still not working. I think it has something to do with linking the two C files. If anyone can please answer this, it would greatly help me. here is the code:
    HelloWorld.c:
    #include <jni.h>
    #include <stdio.h>
    #include "MyOldHello.h"
    #include "HelloWorld.h"
    JNIEXPORT void JNICALL
    Java_HelloWorld_print(JNIEnv *env, jobject obj)
         helloPrint();
         return;
    HelloWorld.java:
    class HelloWorld
         private native void print();
         public static void main(String[] args)
              new HelloWorld().print();
         static
              System.loadLibrary("HelloWorld");
              System.loadLibrary("MyOldHello");
    MyOldHello.c:
    #include <jni.h>
    #include <stdio.h>
    #include "MyOldHello.h"
    void helloPrint()
         printf("\nHello World!\n");
    MyOldHello.h:
    void helloPrint();
    Now i use the Visual C++ command prompt to compile this by saying:
    javac HelloWorld.java
    javah -jni HelloWorld
    cl -Ic:\Java\jdk1.6.0_20\include -Ic:\Java\jdk1.6.0_20\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll
    and now it gives me the error saying that there is an unresolved external symbol, which is the call to helloPrint in the file HelloWorld.
    If anyone knows how to solve this, or how to call external C functions from a C file that is being called from a Java file using JNI, please respond.
    Thanks
    Nick

    Hi,
    In your post on velocity review, you did not compile MyOldHello.c. You compiled a C file that included the header file for it and called a method defined in the header. The linker is never going to be able to find the code for this if you do not include the object file for this.
    Try this. You will also have to add in any JNI libraries you need to link against but I am sure you could work that out.
    cl /c MyOldHello.c
    cl /c -Ic:\Java\jdk1.6.0_20\include -Ic:\Java\jdk1.6.0_20\include\win32 -MD HelloWorld.c
    cl /LD MyOldHello.obj HelloWorld.obj /FeHelloWorld.dll
    [http://msdn.microsoft.com/en-us/library/f35ctcxw(VS.80).aspx]
    Cheers,
    Shane

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • Gui_download function to download the file in application server in bdc

    Can we use gui_download function to download the file in application server in bdc?
    Regards,
    pandu.

    for downloading the file on application sever you use the concept of Dataset. GUI_DOWNLOAD is for presentaion server.
    regards
    Abhi

  • HANA Server site JavaScript how to call functions in another .js file? thanks

    In HANA Studio, I have created a .js file and a server site javaScript .xsjs file. The .js file and .xsjs file are in the same path .I create function F1() in js file. Then I want to call function F1 in xsjs file. But it always through an error “f1 was used before it was defined”. Any suggestion? Thanks very much
    .js file:
    .xsjs file:

    Hi Jim,
    Now I have found the method how to use external library. If we want to outsource some of xsjs functions to an external library, XSEngine provides a special format for this, called “.xsjslib”. Then in xsjslib file, we define functions need to be outsourced.
    In .xsjs file, we can import a library using the following code:
    $.import("<Package_Library_was_deployed>","xsjslib File Name");
    The Package_Library_was_deployed please refer to:
    Access functions inside library by this path:
    $.Package_Library_was_deployed.xsjsFileName.FunctionName();

  • [svn] 4159: Enhancement SDK-18016 - updating mxmlc' s Embed functionality to recognize .pbj files as precompiled Shader files.

    Revision: 4159
    Author: [email protected]
    Date: 2008-11-21 13:06:29 -0800 (Fri, 21 Nov 2008)
    Log Message:
    Enhancement SDK-18016 - updating mxmlc's Embed functionality to recognize .pbj files as precompiled Shader files. This change still retains the old octet stream MIME type mapping to a ByteArray based class, but this change removes the hoop you have to jump through to embed a Shader. The new Embed usage should simply be as follows:
    [Embed(source="TubeView.pbj")]
    private var TubeViewClass:Class; //Subclass of flash.display.Shader
    Also updating Embed MIME types to recognize .dfont files since these are supported by CFFFontManager.
    Finally, updating FXG TextGraphic -> SymbolClass to use a simple FlexSprite instead of a Group. TextGraphic should now render at the right depth among SWF graphics primitives when compile time optimized FXG is used.
    QE: Yes
    Doc: If we've documented embedding .pbj, this is a simpler approach and represents a slight change in syntax.
    Checkintests: Pass
    Reviewer: Corey (Note he said he'll update ShaderFilter with a new property to accept a shader directly in a future check-in).
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18016
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/TextFXGGraphics.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/TextHelper.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/DataTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MimeMappings.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/PBJTranscoder.java

  • Calling a function in an EXE file from Java Program

    Hi Im having a function which is written in c program.i need to call that function from my java program, if i create a shared library (DLL) for my C code then it works but my requirement is i dont want to create that DLL , like in it would be an executable and my java code should access that function in that C program

    I understand the usage od a DLL but the thing is if i convert the exe to a DLL
    the server doesnt start at all so what i need is that i dont want to change
    that .EXE into a .DLL,let it be an executable. that executable is in running mode
    and through my java program i need to call a function in that EXE file.
    Is ther any way to do it?Nope, but you have another problem: why can't you separate your server program
    into a .dll part and a startup part? Both, when properly linked against each other
    should give you an executable file.
    kind regards,
    Jos

Maybe you are looking for