1

help on init.d/functions daemon --pidfile

view story
linux-howto

http://forums.fedoraforum.org – i just want to clarify what does --pidfile argument do i was trying to make a script that when a C++ daemon program is executed it will not be executed again as long it is running. i got a script and i dont know what does this mean Code: daemon --pidfile /home/joseph/Documents/test.pid --$prog the 2nd argument is the path to .pid but whenever i run it it wont generate a file. i tried to make the .pid my self but it still doesnt work my program still runs twice :( i can use lock files but i want to know how the .pid thing works thank you :) :dance: (HowTos)