startup problem

From: Anoop Kumar V (akumar@sapient.com)
Date: Thu Dec 26 2002 - 00:08:15 EST


Hi,

I have some more startup questions. I have written a startup script that
automatically starts up the applications required to bring up our site
on a reboot (/etc/rc3.d).
Now there is one particular application which when started up through
this script would keep running as root and would not shut if the
application user tries to shut it down, unless he logs in as root. This
I primarily fixed it by using this command in my startup script:
su - dynamo -c `./startDynamo` > dynamo.log 2>&1

But I still face another problem. This process "startDynamo" also writes
a few log files of its own on a daily basis. The problem is that these
files get owned by root with rwx------ permissions, and so any other
normal user cannot even read them. Now how do I fix this problem. I can
give a chmod -R 777 <top_level_dir_of_logs> in my startup script, but
this would only change permissions for those files written during the
startup...and not for any subsequent log files created.

Also this is the production environment and I cannot install anything
new.. like sudo for example.

Thanks in advance,
Anoop Kumar V.
? Sapient
Presidency Building,
Delhi- Mehrauli Road
Gurgaon 122001 Haryana India
+91.124.682.6125 desk
+91.124.680.8015 fax
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:30 EDT