![]() |
|
|
#1 |
|
Aug 2004
2·3 Posts |
Im running fedora core4 and id like to start mprime at startup but run as a non root account. How can I do this?
currently i ssh to the box and run nohup ./mprime -d & thanks |
|
|
|
|
|
#2 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
Quote:
![]() However, that's not very helpful, so here is a longer answer. Most things that start at boot time are fired up from scripts stored in /etc/rc.d/init.d and most of them are to start daemons, configure hardware and perform general housekeeping. You could create a script there and appropriate links from /etc/rc.d/rc?d.d but I personallly wouldn't do it that way. There is another script in /etc/rc.d/rc.local which is also run at startup time and after all the init.d scripts. Put something like this line in that file: Code:
/bin/su jruser -c "cd /full/path/to/mprime ; ./mprime -d > out_file 2> err_file & " I hope there are no silly typos in that code. You should RTFM anyway, just to check my typing. Good luck! Paul Last fiddled with by xilman on 2005-08-16 at 12:05 Reason: There was a typo in the script, despite my proofreading 8-( |
|
|
|
|
|
|
#3 |
|
Nov 2002
Anchorage, AK
3×7×17 Posts |
This works in FreeBSD, so should work in Linux.
Create a simple script, say "start_mprime.sh": #!/bin/sh /home/user/mprime/mprime -b Then use the crontab @reboot user sh /home/user/mprime/start_mprime.sh where user is a non-priviledged user account. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mprime | Unregistered | Information & Answers | 3 | 2011-08-05 09:17 |
| Server schow not my last credentials | Axel1 | Software | 3 | 2009-09-29 19:48 |
| ./mprime -B in 257 | Lazlow | PrimeNet | 3 | 2008-10-29 20:40 |
| mprime 25.2? | Salz | Software | 10 | 2007-07-26 09:02 |
| Problem with mprime (Fixed with mprime -d) | antiroach | Software | 2 | 2004-07-19 04:07 |