From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079341819533.tru64-unix-managers.marc@archive.invalid> From: "Bruce B. Platt" Date: Wed, 15 Mar 2000 13:41:06 +0000 To: tru64-unix-managers Subject: /sbin/init.d script won't run at system startup, but will X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079341819533 I suspect I am missing something very simple here. I have inherited a system with the following problem in starting a daemon at boot time. I have a startup script which is in /sbin/init.d, pointed to by a link in /sbin/rc3.d, (S57script). This script contains the lines: #!/sbin/sh /usr/local/jrun/jsm-default/startjsm.sh The startjsm.sh script starts a java run time environment. It needs to start before the apache web server starts, and when invoked as above, it doesn't during system bootup. However, if I (as root) execute the command /usr/local/jrun/jsm-default/startjsm.sh, the process starts just fine. Now, if I change the /sbin/init.d script to read: #!/sbin/sh su sr765 -c "/usr/local/jrun/jsm-default/startjsm.sh" exit then the script runs fine starts the java run time environment and all is well. The scripts permissions are 755 and is owned by user 65533 and group 10. As you can see, there is no user with that UID and no group with that GID. The user sr765 is a member of the user and system groups, and is NOT the owner of the /usr/local/jrun/jsm-default/startjsm.sh script, nor is he the owner of the parent directories, and he is not a member of the group of which these files are "membered" to. sr765 happens only to be a user of the system who uses the java run time environment in his work. What do I not understand about the init process that would allow me to start this wiithout the su -c in script???? Any and all help solicited, and I will sumamrize. Regards +--------------------------------------+ Bruce B. Platt, Ph.D. Comport Consulting Corporation 78 Orchard Street, Ramsey, NJ 07446 Phone: 201-236-0505 Fax: 201-236-1335 bbp@comport.com, bruce@ bruce.platt@ OR, bruce@bbplatt.com