RVDowning Posted October 15, 2007 Report Share Posted October 15, 2007 The author of btnx, a great program that lets one map keyboard keystroke combinations or applications to the mouse buttons on more exotic mice (i.e. Logitech MX Revolution) wrote the program for Ubuntu. His execution script doesn't quite work for Mandriva (2008.0). The forum thread is here: http://ubuntuforums.org/showthread.php?t=455656 The home page for btnx is here: http://ollisalonen.com/btnx/ When I indicated that it didn't work right in Mandriva, he responded as follows: "The service script in /etc/init.d/btnx is made from a Debian skeleton script. It apparently makes calls that are Debian (or Debian-based distros, ie Ubuntu) specific. I will have to change this to make it compatible with other distros. Mandriva has start-stop-daemon, right?" I'm not really sure what he is asking. How should I respond to him? [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
scoonma Posted October 15, 2007 Report Share Posted October 15, 2007 "The service script in /etc/init.d/btnx is made from a Debian skeleton script. It apparently makes calls that are Debian (or Debian-based distros, ie Ubuntu) specific. I will have to change this to make it compatible with other distros. Mandriva has start-stop-daemon, right?" I'm not really sure what he is asking. How should I respond to him? As root, you can handle many services (sort of "frontends" for daemons) in Mandriva this way: "service <servicename> start | stop | restart | status" Guess this is what he meant, as you can access services also by entering their pathname, which would be /etc/init.d/<servicename>. So in short: the answer is yes (but no guarantee that it will work). Probably the author of btnx will find some Mandriva examples useful (like alsa, haldaemon, cups...) from /etc/init.d/. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 16, 2007 Report Share Posted October 16, 2007 It also has chkconfig to add the service so that it will appear on a list that is configurable and can be enabled/disabled during bootup where necessary. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 16, 2007 Report Share Posted October 16, 2007 Mandriva does not have start-stop-daemon...at least it is not in any pkg that is installed by default. Mandriva has daemon, however, but not sure if it takes the same commandline parameters that start-stop-daemon does. Quote Link to comment Share on other sites More sharing options...
adamw Posted October 17, 2007 Report Share Posted October 17, 2007 The correct way to handle starting and stopping services on Mandriva is with the 'service' command. To enable and disable services at boot, it's the 'chkconfig' command. start-stop-daemon is a Debianism. If the author wants to make his initscript properly distribution-independent, he should follow the LSB: http://refspecs.linux-foundation.org/LSB_3...tocsysinit.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.