afrender service

Installation and configuration.
Post Reply
jjungfels
Posts: 2
Joined: Fri Feb 24, 2017 5:19 pm

afrender service

Post by jjungfels » Fri Feb 24, 2017 7:47 pm

Hey folks,
we recently upgraded from Fedora22 and CGRU 2.0.8 to Fedora24 with CGRU 2.2.0.
Aside from some minor issues, one problem we have has to do with the afrender service: It no longer starts at startup of the OS.
Checking the status reveals the following:

Code: Select all

? afrender.service - LSB: Afanasy afrender daemon
   Loaded: loaded (/etc/rc.d/init.d/afrender; generated; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fr 2017-02-24 18:12:19 CET; 5min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1299 ExecStart=/etc/rc.d/init.d/afrender start (code=exited, status=1/FAILURE)

Feb 24 18:12:19 ra-101-15 systemd[1]: Starting LSB: Afanasy afrender daemon...
Feb 24 18:12:19 ra-101-15 afrender[1299]: uid=1001(render) gid=1001(render) groups=1001(render)
Feb 24 18:12:19 ra-101-15 afrender[1299]: Starting afrender...
[size=150]Feb 24 18:12:19 ra-101-15 afrender[1299]: /etc/rc.d/init.d/afrender: line 107: su: command not found[/size]
Feb 24 18:12:19 ra-101-15 afrender[1299]: Can't execute process.
Feb 24 18:12:19 ra-101-15 systemd[1]: afrender.service: Control process exited, code=exited status=1
Feb 24 18:12:19 ra-101-15 systemd[1]: Failed to start LSB: Afanasy afrender daemon.
Feb 24 18:12:19 ra-101-15 systemd[1]: afrender.service: Unit entered failed state.
Feb 24 18:12:19 ra-101-15 systemd[1]: afrender.service: Failed with result 'exit-code'.
I printed the PATH variable right before line 107 and /usr/bin/ is in it. If I replace the "su" by /bin/su or /usr/bin/su I get the "permission denied" message.
I am not experienced enough with linux, so I dont really know where to go from here. The problem is the same on freshly installed Fedora25 with CGRU 2.2.0.
Can anyone help me with this?
Thanks!
CGRU 2.2.0 - Fedora24 - Maya 2017
Jakob Jungfels

User avatar
priel71
Posts: 34
Joined: Fri Jan 20, 2017 2:10 am
Location: Kuala Lumpur
Contact:

Re: afrender service

Post by priel71 » Sat Feb 25, 2017 3:12 pm

Hi Jakob, I find that writing a small oneshot service script was easiest... Then I just keep the afserver and afrender in the /usr/local/bin folder. Here's an example service script (/etc/systemd/system/afserver.service):

[Unit]
Description=AFServer
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/afserver start
RemainAfterExit=true
ExecStop=/usr/local/bin/afserver stop
ExecReload=/usr/local/bin/afserver restart
StandardOutput=journal

[Install]
WantedBy=multi-user.target

Peter.

Edit... just saw you were referring to the afrender service, but I do the same there, just start the afrender script instead of the afserver...

jjungfels
Posts: 2
Joined: Fri Feb 24, 2017 5:19 pm

Re: afrender service

Post by jjungfels » Sat Feb 25, 2017 3:30 pm

Thank you Peter. I will try your suggestion.
CGRU 2.2.0 - Fedora24 - Maya 2017
Jakob Jungfels

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests