# # This file MUST be edited with the 'visudo' command as root. # # Use 'visudo -f /etc/sudoers.d/domoticz' to do so. # # See the man page for details on how to write a sudoers file. #This file allow domoticz user to restart the service while upgrading the application with the upstream internal updater #alias for command to restart service (will be used during upgrade) Cmnd_Alias RESTART_CMD = /sbin/service __APP__.sh restart #authorized app user to run restart command __APP__ ALL=(ALL) NOPASSWD: RESTART_CMD