Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VANILLA-LIST:2475] Help with Linux shell init scripts
Quoting Alec Habig (habig@budoe.bu.edu):
> Bob Tanner writes:
> >
> > If you look at the Vanilla.spec, you will see I have
> > /etc/rc.d/init.d/netrek, which will use chkconfig --add on post
> > install and a chkconfig --del on post uninstall. So, the run level
> > stuff is done. I plan to test it tonight.
>
> So you want the default way people run a server to be as root on boot?
The init file I wrote will su to the games account before starting the netrek
server.
I would not want the server running as root.
> From a sysadmin standpoint, make an account "netrek", and use a cron
> job. FWIW, this is the mode in which bigbang ran as well.
Redhat 6.0 comes with a pre-made account called games and a group called
games. For testing, I am going to make stuff owner games, group games. Later
as I'll add the code to create a user called netrek, group games and make the
files ownership appropriate.
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9