You are not logged in.

#1 2015-05-02 22:33:44

archXi3
Member
Registered: 2015-05-02
Posts: 3

Daemon requires root privileges (failing to execute on startup)

Greetings,

I am trying to get this daemon to run on startup. Systemd loads it successfully on startup, but when it trys to run the daemon it outputs an error and therefore it is does not run:

 Process: 1041 ExecStart=/usr/bin/pommed -f (code=exited, status=1/FAILURE) 

I tried to run the daemon myself, and I received the error:

E: pommed needs root privileges to operate  

I changed the premissions and the ownership of the file and I still get the same error.

I would appreciate your insight on solving this problem.

Thank you!

Last edited by archXi3 (2015-05-02 22:35:51)

Offline

#2 2015-05-02 22:50:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Daemon requires root privileges (failing to execute on startup)

archXi3 wrote:

it outputs an error

and the error is ... ?

Offline

#3 2015-05-02 22:56:54

archXi3
Member
Registered: 2015-05-02
Posts: 3

Re: Daemon requires root privileges (failing to execute on startup)

Hey tomk,

I know that sentance seems a bit weird but that first line of code is the error I got when I check the systemd status:

 $systemctl status pommed.service -l

● pommed.service - Pommed Apple Hotkeys Daemon
   Loaded: loaded (/usr/lib/systemd/system/pommed.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2015-05-02 14:41:57 PDT; 33min ago
  Process: 1041 ExecStart=/usr/bin/pommed -f (code=exited, status=1/FAILURE)
 Main PID: 1041 (code=exited, status=1/FAILURE)
 

Thank you smile

Offline

#4 2015-05-03 01:42:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,561
Website

Re: Daemon requires root privileges (failing to execute on startup)

Is this a MBP 5,2?  If so, did you see the note in the wiki?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2015-05-03 16:06:50

archXi3
Member
Registered: 2015-05-02
Posts: 3

Re: Daemon requires root privileges (failing to execute on startup)

Thanks Trilby, it is 5,1. Pommed runs perfectly when I envoke it with sudo, but I don't know how to use sudo in systemd startup since there is no tty. I tried to edit the unit file but that did not work. I also tried to pommed  to an rc.local script and I added that to systemd but I got the same error status=1/Failed... but it runs when I envokeit with sudo.

Last edited by archXi3 (2015-05-03 16:08:29)

Offline

Board footer

Powered by FluxBB