SourceForge has been redesigned. Learn more.
Close

#229 windows plugin: reboot / poweroff doesn't work

open-accepted
Matt
Plugins-win (3)
5
2012-10-22
2012-10-21
Sok Ann Yap
No

I need to make these changes for the reboot / poweroff action to work:

- Manually edit CopSSH's etc/sshd_config to use OPENQRM_EXEC_PORT instead of the default port 22 [1].

- Change the command in files:
- web/base/server/resource/resource-action.php
- web/base/server/resource/class/resource.reboot.class.php
- web/base/server/resource/class/resource.poweroff.class.php
from "reboot" to "reboot || shutdown -r -t 0" and from "halt" to "halt || shutdown -s -t 0"

By the way, as new version CopSSH is no longer free, perhaps it's good to look for alternative? KpyM Telnet/SSH Server looks like a good option, as it works without an installer [2], and all options can be specified in .ini files, with openQRM-Client.nsi taking care of creating the root user [3].

[1] CopSSH installer doesn't seem to allow specifying the port, although it does support /S for silent mode, and /D for the destination dir: https://www.itefix.no/i2/content/how-can-i-install-copssh-silently
[2] http://www.kpym.com/phpbb/viewtopic.php?t=378
[3] http://www.kpym.com/phpbb/viewtopic.php?t=388

Discussion

  • Matt

    Matt - 2012-10-22
    • status: open --> open-accepted
     
  • Matt

    Matt - 2012-10-22

    Hi Sok,

    many thanks for your bug report!
    reboot/shutdown actually should work fine even with the port 22 for Copssh since a virtual-command hook remaps those command for windows systems.
    Anyway we plan to enhance the windows integration for the next releases.
    -> thanks for the tip with KpyM!! need to take a look into it and see. From your infos it seems a good replacement for Copssh.

    many thanks, have a nice day and enjoy openQRM 5.0,

    Matt Rechenburg
    Project Manager openQRM

     

Log in to post a comment.