/sbin/halt called by ups monitoring software doesnt work?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
/sbin/halt called by ups monitoring software doesnt work?
I have a new UPS with Net Agent II SNMP.
The UPS monitoring software that comes bundled with the package is called Clientmate. I've installed the windows version on a WinXP machine and it initiates a shutdown fine when the AC power is cut. I've installed the Linux version on a Centos 5 system and it can see the SNMP enabled UPS, it senses when the AC power is cut and initiates the shutdown correctly after the predefined delay period, but when it issues the /sbin/halt command nothing happens?
If I have a shell open I see a countdown until shutdown happening, when it gets to 0 it reads:
If I issue /sbin/halt manually from the command line it shuts down immediately?
I tried changing the path to /sbin/halt in the clientmate config file to /usr/sbin/halt but it didnt appear to effect anything.
Any suggestions as to why /sbin/halt is not working when called by the Clientmate software. I am thinking possibly the Clientmate may not be running under root but I am not sure how to check? I installed it using root user and all files are owned by root?
Cheers, I got it working using sudo as per your advice. I first tried just allowing "deamon" group to execute /etc/halt but it didnt work, so I allowed "users" and it now works but I'd prefer to lock it down a bit better I just dont what specific group or user the Clientmate stuff runs under?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.