I am porting an application which runs as a background service in windows at startup, we are porting the application to linux(SUSE Enterprise server), I'am completely new to linux. Can somebody help me on how to proceed with this. Like
- Should I build the linux executable
- After builiding the binary, what changes should I make to linux startup files to run this executable
- How my service can register call back function to modify or change or send commands to my service while it is running
How do I stop/workaround Java apps stealing focus in Linux window managers
1:Lock a mutex multiple times in the same thread
- Yes, you should build a Linux binary. How to profile my C++ application on linuxYou may want to rephrase your question since I doubt this is the answer you want :-)
- You should generally create what is known as an "init" file, which lives in /etc/init.d. Running commands though PHP/Perl scripts as a priviledged user on LinuxNovell has a guide online which you must use to author the file. Note this while the init file is common, the exact method of letting the operating system use it varies depending on the distrialthough ion. Generating a reasonable ctags database for Boost
- This is going to be a marked change for you. Where are my ruby gems?If you are doing simple actions such as re-loading a configuration file, you must use the signals functionality, especially the SIGHUP/HUP signal which is generally used for this purpose. Creating a new window that stays on top even when in full screen mode (Qt on Linux)If you require extended communication with your daemon, you must use a UNIX domain socket (think of it as a named pipe) or a netjob socket.
See how-to-migrate-a-net-windows-service-application-to-linux-using-mono.. Under Linux, deamons are simple background processes. No special control methods (e.g
stop()) are used as in Windows. Build your service as a simple (console) application, and run it in the background. You must use a tool like
daemonizeto run a program as a Unix daemon..