[mythtv-users] Fwd: Re: Funky prefix to shutdown command (-#012#011#011#011#011#011#011)
Bill Meek
keemllib at gmail.com
Wed Dec 19 21:15:09 UTC 2012
On 12/19/2012 01:28 PM, schlimbo at gmx.de wrote:
...
> myth at mythserver:~$ mythshutdown --safeshutdown -v
...
Let me try again.
To see the command that shuts down the system it's:
mythshutdown --safeshutdown -v system --loglevel debug
Which will probably say /sbin/poweroff, and the result (my result)
was:
...Managed child (PID: 5774) has exited! command=/sbin/poweroff, status=256, result=1
because non-root users can't run the command. If it were sudo /sbin/poweroff,
then an entry in /etc/sudoers.d/mythtv could allow it.
So try: sudo mythshutdown --safeshutdown, it worked for me on the
command line. You probably need a sudoers entry for it to work
without a terminal (e.g. the backend.)
--
Bill
More information about the mythtv-users
mailing list