Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I setup a memcached and want to run this file " /etc/init.d/memcached " when the server boots. I do not know where to add this in order to run ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5

    Adding scripts to server startup

    Hello,

    I setup a memcached and want to run this file " /etc/init.d/memcached " when the server boots. I do not know where to add this in order to run at start-up(in which file). Can any one help me in solving this.

    Thank you
    Satheesh

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    Code:
    chkconfig --list |grep memcache
    chkconfig memcached on
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5

    Adding scripts to server startup

    Actually, i want to automatically run the command that is saved in that file " /etc/init.d/memcached " at startup.

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    ?
    Open the file with a texteditor and look for the "start" section.
    But why would you want that other than educational purpose?

    Starting manually:
    Code:
    /etc/init.d/memcached start
    Starting at boot time:
    Code:
    chkconfig memcached on
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5
    ok...

    its not about memcached, i only mentioned it as an example. if we want to play a sound file or video file automatically when we login

    I which file we should have to add the entry

    for eg to play a video we use "mplayer filename" this command. i want to know how can we run this command automatically when we login.

Posting Permissions

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