tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: jreed () wukon ! appliedtheory ! com
To: tru64-unix-managers
Subject: SUMMARY: Startup scripts for non-root users?
Date: Fri, 01 Oct 1999 20:50:07 +0000	[thread overview]
Message-ID: <96079079015939.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1999-10-01 20:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox