You are not logged in.
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
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
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
or you can put it into /etc/rc.local.
Offline
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.
you mean...daemonize your script, or turn the script into an rc.d script that starts your daemon?
I guess its daemonizing it..
Offline