creating a new daemon
All, What is the SUSE way to invoke/create a daemon? In particular I want to have WEBrick from Ruby on Rails running on my server anytime the server is in init 3 or 5. I can manually invoke by "/srv/www/vhosts/my_server/scripts/server --daemon --port 3030" I know I can manually add appropriate entries in /etc/rc.d but I believe my changes will get destroyed the next time I upgrade the server. Thanks Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
On Tue, 2005-12-27 at 19:47 -0500, Greg Freemyer wrote:
All,
What is the SUSE way to invoke/create a daemon?
In particular I want to have WEBrick from Ruby on Rails running on my server anytime the server is in init 3 or 5.
I can manually invoke by "/srv/www/vhosts/my_server/scripts/server --daemon --port 3030"
I know I can manually add appropriate entries in /etc/rc.d but I believe my changes will get destroyed the next time I upgrade the server.
Not if you upgrade, fresh install yes. Just use the template file there to set up the process you want to run. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-12-27 at 19:47 -0500, Greg Freemyer wrote:
What is the SUSE way to invoke/create a daemon?
man init.d: The SuSE boot concept - and the equivalent chapter in the (paper) book. Use /etc/init.d/skeleton as a starting point.
I know I can manually add appropriate entries in /etc/rc.d but I believe my changes will get destroyed the next time I upgrade the server.
Not if you do it properly. An upgrade will not erase your script. Of course, Yast will delete the symlinks any time, you can not add then manually. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDsof5tTMYHG2NR9URAgDfAJ9IYZcir2y/LBzr1XuDBRBzsRgdtgCfdbAY ysaIXNMqUnsvpbw5i22Uhvg= =n2Jv -----END PGP SIGNATURE-----
participants (3)
-
Carlos E. R.
-
Greg Freemyer
-
Ken Schneider