can we have a way to restart the service in the GUI on our PC
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
<command>
<name>Restart Service</name>
<execute>sudo service RepetierServer restart</execute>
<confirm>Really reboot restart service?</confirm>
</command>
these permissions seem to affect all execute commands in the config file globally, is their a way to separate them ?
<!-- 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>
sudo visudo
repetierserver ALL=(ALL) NOPASSWD: ALL
aio@aio:/var/lib/Repetier-Server$ sudo service RepetierServer status
● RepetierServer.service - Repetier-Server 3D Printer Server
Loaded: loaded (/lib/systemd/system/RepetierServer.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-07-21 15:28:41 AEST; 6s ago
Process: 1370342 ExecStartPre=/bin/mkdir -p /var/lib/Repetier-Server (code=exited, status=0/SUCCESS)
Process: 1370343 ExecStartPre=/bin/chown -R repetierserver /var/lib/Repetier-Server (code=exited, status=0/SUCCESS)
Process: 1370346 ExecStart=/usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml -->
Tasks: 10 (limit: 77010)
Memory: 22.8M
CGroup: /system.slice/RepetierServer.service
└─1370347 /usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml --daemon
Jul 21 15:28:41 aio systemd[1]: Starting Repetier-Server 3D Printer Server...
Jul 21 15:28:41 aio systemd[1]: RepetierServer.service: Found left-over process 1370337 (sudo) in control group while starting unit.>
Jul 21 15:28:41 aio systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jul 21 15:28:41 aio systemd[1]: RepetierServer.service: Found left-over process 1370338 (systemctl) in control group while starting >
Jul 21 15:28:41 aio systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jul 21 15:28:41 aio systemd[1]: Started Repetier-Server 3D Printer Server.
Jul 21 15:28:41 aio sudo[1370337]: pam_unix(sudo:session): session closed for user root