Re: Start/Stop Script
Michelle Konzack <linux4michelle@freenet.de> wrote:
> Am 2005-04-12 20:50:40, schrieb Jim Knuth:
>> ja. Klar. Ich hab schon versucht, es wird aber keine *.pid produziert.
>> Also kann auch nicht gestoppt werden. DAS ist mein Problem. ;)
> Also wenn keine PID erzeugt wurde, konnte der start-stop-daemon
> DEINEN process nicht starten.
Michelle, bitte lies die man-page zu start-stop-daemon noch einmal,
bevor du hier Vorträge hälst.
Und dann verstehst du bitte den Unterschied zwischen:
,----
| -p|--pidfile pid-file
| Check whether a process has created the file pid-file.
`----
und
,----
| -m|--make-pidfile
| Used when starting a program that does not create its own pid file.
| This option will make start-stop-daemon create the file
| referenced with --pidfile and place the pid into it just before
| executing the process. Note, it will not be removed when
| stopping the program. NOTE: This feature may not work in all
| cases. Most notably when the program being executed forks from its
| main process. Because of this it is usually only useful when
| combined with the --background option.
`----
Da Jim ja schon schrieb, das sein Daemon/Programm kein eigenes PID-File
erzeugt, muss er zusätzlich zu Option -p noch -m benutzen.
S°
--
Sven Hartge -- professioneller Unix-Geek und alltime Nerd
Meine Gedanken im Netz: http://sven.formvision.de/blog/
Reply to: