ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been programming in Microsoft Windows for some time now, using VB VC C++ C, and recently have decided to look into a project where Linux is going to be a far superior solution than Microsoft due to it's flexibility.
I have done some simple test projects in Linux developing a couple of terminal programs, some X windows gui apps all in c++. However I have a project that is slightly different and I am at a loss to what documentation I should be searching for to get it going.
I basically want to create a set of services for a Linux Server, I want the services to have the following behaviour:
- Run regardless of whether or not a user is logged into Linux or not
- Be able to be started or stopped from the Server control panel.
Can someone do me a big favour and point me in the direction of the appropriate API documentation?
Thanks for your reply, I am currently running Red Hat 8 and the X windows has a simular service control panel to Windows, however I want to run something that is not reliant on X windows, I gather there is no real api for linux you simply need to modify a boot record (like my old dos days), the thing I am unsure of where it is and whether it will run ok without a user logged in to the system?
It will run irrespective of the user logged in or not. You can even make it as a module or a daemon and turn it into a seperate process which runs irrespective of the user. Here it will have its own user id and own user group and will have its own permissions .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.