From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079079015939.tru64-unix-managers.marc@archive.invalid> From: jreed () wukon ! appliedtheory ! com Date: Fri, 01 Oct 1999 20:50:07 +0000 To: tru64-unix-managers Subject: SUMMARY: Startup scripts for non-root users? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079079015939 The consensus seems to be to use the /sbin/rc3.d/* format, and in it to use: su - -c "startupscript" John Losey noted: "Some of the times, we also had to add a: . /usr/users//.profile" Jim Fitzmaurice sent an example script: #! /bin/sh # # dbora: # case "$1" in 'start') echo "Starting Oracle and Listener" sleep 10 if [ -f /usr/ora1/oracle/bin/lsnrctl ] ; then su - oracle -c "/usr/ora1/oracle/bin/lsnrctl start" su - oracle -c "/usr/ora1/oracle/bin/lsnrctl dbsnmp_start" fi if [ -f /usr/ora1/oracle/bin/dbstart ] ; then su - oracle -c /usr/ora1/oracle/bin/dbstart fi ;; 'stop') if [ -f /usr/ora1/oracle/bin/dbshut ] ; then su - oracle -c /usr/ora1/oracle/bin/dbshut fi ;; esac and Miguel Fliguer sent an example from Ingres: su $ING_USER -c \\ "$II_SYSTEM/ingres/utility/iistartup \\ $II_SYSTEM" >/dev/console Thanks to all who replied! -- Judith Reed jreed@appliedtheory.com (315) 453-2912 x335