* SUMMARY: Startup scripts for non-root users?
@ 1999-10-01 20:50 jreed
0 siblings, 0 replies; only message in thread
From: jreed @ 1999-10-01 20:50 UTC (permalink / raw)
To: tru64-unix-managers
The consensus seems to be to use the /sbin/rc3.d/* format, and in it to use:
su - <username> -c "startupscript"
John Losey noted:
"Some of the times, we also had to add a:
. /usr/users/<username>/.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-10-01 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-01 20:50 SUMMARY: Startup scripts for non-root users? jreed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox