Re: rc.local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Message: 6
Date: Mon, 20 Aug 2007 17:22:56 +0100
From: Andy Green
Subject: Re: rc.local
To: For users of Fedora
Message-ID: <46C9BFE0.3030505@xxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Somebody in the thread at some point said:

> How do I run a program from rc.local
>
> I have:
> su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe >/dev/null &"
>
> Nothing happens. I see nothing in the logs. Is there a way to trace this

Maybe

nohup su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe
>/dev/null " &

will work better... because your & is inside the quotes I think it
finishes with the su action after spawning the background process and
then kills the background process because the su exited.

-Andy



------------------------------

Message: 7
Date: Mon, 20 Aug 2007 11:23:42 -0500
From: Justin W
Subject: Re: rc.local
To: For users of Fedora
Message-ID: <46C9C00E.1080306@xxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

edwarner99@xxxxxxxxx wrote:
> How do I run a program from rc.local
>
> I have:
> su regularUser -c "cd /home/me/folding; ./FAH504-Linux.exe >/dev/null &"
>
> Nothing happens. I see nothing in the logs. Is there a way to trace
> this down?
> Thanks,
I'm guessing that rc.local is being run in a shell, which once it is
closed, kills any child processes. You should probably look into the
nohup program (http://en.wikipedia.org/wiki/Nohup might be useful). As
to where the nohup should be place, though, is a question I can't
answer. It might be placed before the `su` or maybe before the
`./FAH504-Linux.exe`. Someone else will need to help you with that
(maybe just try both...?).

Justin W



------------------------------

I tried both suggestions without any success. Is  there a way to monitor what is happening?


Got a little couch potato?
Check out fun summer activities for kids.
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux