Server Restart Option
Would like to see a 'Server Restart' option in the Cog dropdown menu just above the Logout. Also add this as a permission in the User Accounts so we can disable that option from users. This would make it easier to restart the server while using the web ui remotely.
Comments
If not, then having it built into the server with user access limited to those approved would be the only other option that I can think of.
What I am looking for is an addition to the User Profile (within Rep-Server) in the Edit Profile window to allow for selected profiles the ability to restart the daemon (service). I don't want the hardware restarted, just the daemon (service). Since I am not well versed in scripting within Ubuntu, I am making a guess that different OS versions would use different scripts to restart the Daemon service for Rep-Server. I believe this variety of script differences could be resolved by adding a Script section in Global Settings allowing an Administrator user in Rep-Server to be able to edit the script to fit the OS version they are using. Then that script would show up as an option in the Edit Profile window.
Now for my confusion on the information about a script that you recommended. I am not sure where within Rep-Server you can place a script. I read the document and I am making a guess that what is being recommended is making an OS side script outside of Rep-Server. That is not what my request involves. If I had to run the script from within the OS, then I wouldn't need a script since I could just as easily reboot the server if needed.
The whole point of the request is to have a quick and easy way to remotely restart the Rep-Server daemon while I am not near the equipment. Or in between prints, quickly restart the daemon to refresh the Rep-Server.
Hope that helps in clarifying the request... sometimes I have an idea in the mind and just can't get it across in my text.
extcommands.xml is to be placed in storage database directory, on linux /var/lib/Repetier-Server/database.
The command for restarting server is
/usr/bin/sudo service service RepetierServer restart
Here the correct example from docs with hidden parts:
As you see you can exactly where and for which user permissions it should appear.
Just make sure user repetierserver can start sudo without password prompt.
it does not seem to restart cleanly
how can I create a user setting that will allow "service" to be restarted
but not restart/shutdown
(but still have admin login that can )
created
/var/lib/Repetier-Server/database/extcommands.xml
added
these permissions seem to affect all execute commands in the config file globally, is their a way to separate them ?
sudo visudo
will restart the server. Try to add this in extcommands.xml just like the reboot.