Re: Program-wrapper to avoid multiple running instances [SOLVED]
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Re: Program-wrapper to avoid multiple running instances [SOLVED]




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Program-wrapper to avoid multiple running instances [SOLVED]  
norman@unnu.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-03-06 11:43 PM

Stephane CHAZELAS schrieb:

> 2006-02-19, 15:30(-08), norman@unnu.org: 
>
> What do you mean?
>
> In which way don't you want it to be started as a daemon?
> A daemon is called "daemon" usually by the nature of what it
> does. There's no special way to start a daemon. That's some
> process that runs on the /background/ and whose actions can be
> invoked by other means that terminal interaction.
>
> start-stop-daemon won't do anything special to start the
> program, if you don't use the --background option.
>
> If you use the --background option, it will detach the process
> from the current terminal and its parent process, and have its
> stdin/stdout/stderr point to /dev/null, which is a sensible
> thing to do if that process is running in the background
> independently of any terminal.
>
> So
>
> start-stop-daemon -Sbvmp /var/pid/sleep.pid -x /bin/sleep -- 100
>
> will start sleep in background detached from the terminal.
>
> start-stop-daemon -Svmp /var/pid/sleep.pid -x /bin/sleep -- 100 &
>
> will start sleep as a background job of the current terminal (if
> the shell supports job control). That will be the same as:
>
> /bin/sleep 100 &
>
> except for the handling of the pid file.
>
> This, above is for the start-stop-debian found on debian, I
> guess it's the same for other distribution.
>
> $ start-stop-daemon --version
> start-stop-daemon 1.13.13
> $ start-stop-daemon --help
> start-stop-daemon VERSION for Debian - small and fast C version written by
> Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>, public domain.
> [...]

After reading your post, i realized that it was exactly what i was
looking for. Thank you very much!

Norman






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register