Ini kalo di C: pid = fork(); if (pid != 0) { // Exit the parent. exit(0); } else { // Make this guy a process group leader. pid = setsid(); if (pid == -1) { printf("Error!\n"); } }
KOkon. On 1/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Kalau pake redhat (dan turunannya) coba lihat file di : /etc/init.d/ copy salah satu file misal httpd jadi daemon_saya, terus di modif bikin suatu service baru jadi gini: service daemon_saya status|start|stop|restart rgds, _uwo_
-- Berhenti langganan: [EMAIL PROTECTED] Arsip dan info: http://linux.or.id/milis