How to find which process started a daemon process in autostart?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to find which process started a daemon process in autostart?
Hi,
When I installed dropbox it installed a proprietary daemon software. Now each time I login, it automatically starts. (I can see it running by the ps -ef command)
Is there any way to find out how it is starting up at each login? So that i can prevent it from starting automatically.
I used KDE 3.5 (recently forked as Trinity).
This daemon is not in my .bashrc, nor in .kde3/Autostart directory.
But I know it is started by some script in my home directory. Because I installed the software as user.
I can try manual kill of the daemon, but i would like to get a better solution to prevent this proprietary software from auto starting without my permission.
Thanking you,
indiajoe
@jhwilliams: Thankyou verymuch, I didn't know every PID has a stat file in /proc
In this case of dropbox your commands gave me 'init' as output.
So does it mean the dropbox is getting started by init itself when i boot?
I am really surprised how a software installed as user can modify the things init does.
I monitored 'ps -ef' as another user just after booting up. Then the dropbox daemon was not running. So it is getting started when i login as myself.
The user id of the command which started it was my id only, not root.
From the PID of the process, I can see that it was started after my Firefox. (I never close Firefox while rebooting, so it starts automatically in each login with previous session)
So i suspect the dropbox is also getting started by the kde along with the other software which were running in previous session.
Where does kde save all the list of programs to restart while rebooting?
PS: Since I use Porteus (a modified version of slackware), i don't have sudo command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.