I'm not using "su".<br>I don't know how can I do!<br><br><div><span class="gmail_quote">2006/12/18, Michael Velez <<a href="mailto:mikev777@hotmail.com">mikev777@hotmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><br>> -----Original Message-----<br>> From: <a href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a><br>> [mailto:<a href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a>] On Behalf Of Linux Man
<br>> Sent: Sunday, December 17, 2006 8:30 PM<br>> To: <a href="mailto:centos@centos.org">centos@centos.org</a><br>> Subject: [CentOS] creating script for init.d<br>><br>> Hello.<br>> I'm moving from a very old Fedora Core 1 to CentOS 
4.4, what<br>> a change!!<br>> Three year ago, I wrote some script (network related) and<br>> worked very well. Now, I can put into init.d by means of<br>> chkconfig and I restarted the system, but always hang when
<br>> executing my srcipt (in my new centos 4.4 ).<br>> There a manual for making scripts for init.d?<br>> there is some new requirement by which it does not work anymore?<br>> Thanks a lots!!!!<br>><br>>
<br><br>Are you using the 'su' command in your script?<br><br>This happenned to me when I moved to RHEL4/Centos 4.  My problem was due to<br>SELinux.  I was using the 'su' command.  When I changed it to use the<br>'runuser' command instead, it worked fine.  The reason it was hanging for me
<br>is that using the su command produces a context question on the console<br>(during password checking) for which I had to press enter.  With 'runuser',<br>you don't get the SELinux context question.<br><br>Michael<br><br>
_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos
</a><br></blockquote></div><br>