Find the answer to your Linux question:
Results 1 to 2 of 2
folks.. i want to know the steps to integrate my own application written in C in linux so that when the linux boots, it should recognize my application. Suppose that ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    34

    integrating customized application with linux

    folks.. i want to know the steps to integrate my own application written in C in linux so that when the linux boots, it should recognize my application.

    Suppose that i have a simple C program that asks the input from the user and then prints the same input on console (Just for the sake of example). Now i want to integrate this with linux so that when linux boots it should treat that as its own application.

    What steps i should follow (i am using openSUSE)

    Regards!

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    you mean you want to create startup application
    that is start a appln when system starts?

    you can copy your file to /etc/init.d
    with execute permissions to all

    and create a link in the runlevels.
    eg./if your file is samp
    create links in runlevel 2,3,4and 5 using
    ln -s /etc/rc.d/rc2.d/S20samp /etc/init.d/samp
    ln -s /etc/rc.d/rc3.d/S20samp /etc/init.d/samp
    ln -s /etc/rc.d/rc4.d/S20samp /etc/init.d/samp
    ln -s /etc/rc.d/rc5.d/S20samp /etc/init.d/samp

    however, instead executing the C file on startup, use the executable for that C file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...