Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    need help with making a APP a service

    I need to find the BEST way to run a app as a service in linux.

    Im going to run a php script that will call that app and start or stop it. We currently do this in windows using the net stop service_name and we need a similar way in linux.

    The solution should meet the following requirements:

    1.) be able to start,stop,restart the service from a php script via the internet.

    2.) be a stable solution.

    3.) run any type of app i choose to run this way.

    Thanks for any help you can provide!

  2. #2
    Anyone? Need some help ASAP

  3. #3
    Linux Guru
    Join Date
    Apr 2003
    London, UK
    You could bind a script to a TCP port through [x]inetd as being the easiest way. The "best" was would depend on what program you are running behind the scenes and its requirements.

  4. $spacer_open
  5. #4
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Lat: 39:03:51N Lon: 77:14:37W
    some choose to simply slave a terminal to the php script and then pass commands that way, in this instance utilizing [x]init as Jason stated.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

Posting Permissions

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