Restart Machine command option

HI,

Is it possible to customize the Restart Machine command in Deadline? The Restart Machine command does not work on the slaves running linux (won`t reboot unless logged as root) however users can VNC onto the slave and reboot them under the general user account used for all render slaves. Is there a way to modify it the content of the command?

Ah, yes, this is a known issue. The problem is that we currently use the “shutdown” command line, which requires root. We should really be looking at using system commands. This is already logged as a bug, but I will see if we can bump up it’s priority to the release after 5.1.

There is no way to modify the content of the command. However, if you have a command line that you can run that will shutdown the machine without root, then you can use the Execute Command option under remote control.

Cheers,

  • Ryan

the command halt -p (-p for power off) works for regular users, I am having the same issue

to reboot the machines as well (maybe its shutdown with a reboot option?) the command “reboot” works for regular users as well. would save us a lot of time :smiley:

right now I use “execute command” and give the shell command directly

I took a look at those commands, and I think only certain distributions of Linux allow them to be run as non-root.

I quickly googled the system functions that would allow us to shutdown the machine in code, rather than spawn a command line, but those too require the app to be running as root.

Changing the permissions of /sbin/shutdown (or wherever it is) to allow non-root users to shutdown might be the easiest solution. Google turns up many ways to do this. For example:
how-to.wikia.com/wiki/How_to_all … r_in_Linux

Cheers,

  • Ryan

Hey Ryan,

That’s exactly what I was looking at. Thanks! :slight_smile:

I’m having a similar problem - but I’ve already changed permissions via the sudoers file (I’m using ubuntu). I can shutdown using the execute command, but I have to type “sudo shutdown -P now” - the “sudo” part is required.

Does deadline start with “sudo” in its internal command? If not, does anyone know if I can get linux to shutdown without that? (web search didn’t turn up anything successful).

thanks!

Take the article posted by Ryan and do solution number 2. That’s what worked for me without having to do sudo.

thanks marianne, that works perfectly! I didn’t realize there would be a difference between the two methods.