Restart repetier-server and klipper use extcommands

I add inti /var/lib/Repetier-Server/database/extcommands.xml:
        <command>
                <name>Restart Repieter server</name>
                <execute>sudo service RepetierServer restart</execute>
                <confirm>Really Restart Repieter server?</confirm>
                <!-- Define if command should show up in local printer interface, default true.-->
                <local>true</local>
                <!-- Define if command should show up in remote printer interface, default true.-->
                <remote>true</remote>
                <!-- Define if command should show up only for users with print permission, default true.-->
                <print-permission>true</print-permission>
                <!-- Define if command should show up only for users with add files permission, default false.-->
                <add-permission>true</add-permission>
                <!-- Define if command should show up only for users with del files permission, default false.-->
                <del-permission>true</del-permission>
                <!-- Define if command should show up only for users with configuration permission, default false.-->
                <config-permission>true</config-permission>
        </command>
        <command>
                <name>Restart Klipper host</name>
                <execute>sudo service klipper restart</execute>
                <confirm>Really Restart klipper host?</confirm>
                <!-- Define if command should show up in local printer interface, default true.-->
                <local>true</local>
                <!-- Define if command should show up in remote printer interface, default true.-->
                <remote>true</remote>
                <!-- Define if command should show up only for users with print permission, default true.-->
                <print-permission>true</print-permission>
                <!-- Define if command should show up only for users with add files permission, default false.-->
                <add-permission>true</add-permission>
                <!-- Define if command should show up only for users with del files permission, default false.-->
                <del-permission>true</del-permission>
                <!-- Define if command should show up only for users with configuration permission, default false.-->
                <config-permission>true</config-permission>
        </command>

Restart repieter server and it not work. Server and klipper not restart if i use ssh it work ok.

Comments

  • You need to put the service command in the list of sudoers for user repetierserver or server has no permission to execute it. Use absolute path to service when you add it!
Sign In or Register to comment.