[SOLVED] how to start an application using the rc.local init script?
Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm trying to start an application (qBittorrent) as a regular user, on the background (&) every time I enter runlevel 5 (graphical environment) using the script rc.local:
/etc/rc.d/rc.local:
Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
su sleep -c "qbittorrent %f"
#I tried also with:
#/usr/bin/qbittorrent &
#./usr/bin/qbittorrent &
#source /usr/bin/qbittorrent &
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.