From: Geoff H. <geo...@gm...> - 2009-03-16 13:43:10
|
Hi Malcolm, I am running SUSE 10.0. The kill command is available to the normal users. Can you please send me your sample rc script? Mine is below and has issues obviously as a normal user. ##################### #!/bin/bash # # chkconfig: 2345 90 10 # description: An snmp data collector for the hobbit & BigBrother network # monitoring suites # processname: devmon # pidfile: /var/run/devmon/devmon.pid # config: /usr/local/devmon/devmon.cfg # source function library #. /etc/init.d/functions RETVAL=0 prog="/usr/local/devmon/devmon" start() { echo -n $"Starting Devmon: " $prog RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/devmon } stop() { echo -n $"Stopping Devmon: " killproc devmon RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/devmon } case "$1" in start) start ;; stop) stop ;; restart|reload) stop start ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL ##################### Thanks. 'Nobody goes there anymore. It's too crowded.' --Yogi Berra On Mon, Mar 16, 2009 at 9:08 AM, Malcolm Hunter <mal...@gm...>wrote: > > Thanks. Forgot about the execute (duh!). I don't believe devmon was > > designed > > to run as a normal user though, as I also can't stop the daemon as a > > normal > > user, as killproc is in /sbin. I know I can move that to /bin but I don't > > think that is safe. > > > > Stopping Devmon: /etc/rc.d/devmon: line 28: killproc: command not found > > > > Any suggestions? > > You should be able to run devmon as a user - I have it running as user > "devmon". What OS are you running? For Linux, there is a Fedora-style rc > script provided which has a RUNASUSER option in it. > > Also, I've not used killproc - I mainly use kill. > > Regards, > Malcolm > -- > Technical copy-editor & proofreader > > KDE Proofreading Team > KDE British English Translation Team > > http://l10n.kde.org/team-infos.php?teamcode=en_GB > > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: > http://www.gmx.net/de/go/multimessenger01 > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support > |