You are not logged in.

#1 2005-09-20 23:47:03

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

How do I turn it into a REAL daemon?

Im running this call of duty server, made a wrapper script to enclose my parameters and pass it to the real binary that starts the server.

this is what i do whenever i want to start it.
$ cd /to/the/directory/of/cod
$ ./START_SERVER

how do i integrate it into the system startup?

Thanks.

Offline

#2 2005-09-20 23:57:41

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How do I turn it into a REAL daemon?

You'll need to create a script similar to the ones in /etc/rc.d 
Check /etc/rc.d/syslog-ng for example.
Once that's done, put it in the /etc/rc.d directory with the other ones and add it's name to the DAEMONS array of rc.conf.

Offline

#3 2005-09-20 23:58:29

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: How do I turn it into a REAL daemon?

you mean...daemonize your script, or turn the script into an rc.d script that starts your daemon?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2005-09-21 00:46:16

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: How do I turn it into a REAL daemon?

or you can put it into /etc/rc.local.

Offline

#5 2005-09-21 01:15:45

hotplainrice
Member
Registered: 2005-09-15
Posts: 15

Re: How do I turn it into a REAL daemon?

Snowman wrote:

You'll need to create a script similar to the ones in /etc/rc.d
Check /etc/rc.d/syslog-ng for example.
Once that's done, put it in the /etc/rc.d directory with the other ones and add it's name to the DAEMONS array of rc.conf.

Im going to try that.

cactus wrote:

you mean...daemonize your script, or turn the script into an rc.d script that starts your daemon?

I guess its daemonizing it..

Offline

Board footer

Powered by FluxBB