"service boinc-client restart" versus "/etc/init.d/boinc-client restart"

Gianfranco Costamagna costamagnagianfranco at yahoo.it
Tue Jun 3 13:36:49 UTC 2014



 Hi Christian,




> Il Martedì 3 Giugno 2014 13:12, Christian Beer <djangofett at gmx.net> ha scritto:
> > Hi,
> 
> I found this little odditiy and want to make sure I didn't understand it
> wrong.
> 
> From the man page of "service" I conclude that it is just a wrapper 
> that
> executes the init-scripts if no upstart script is present. This is the
> case for boinc-client.
> 
> Due to some problems with nvidia-kernel-dkms I have to restart
> boinc-client after a reboot and call "modprobe --force-modversion
> nvidia-uvm" before "xhost local:boinc" in the init-script (line 
> 110) to
> get the GPU available for boinc.
> 
> The odditiy is that calling "sudo service boinc-client restart" 
> doesn't
> seem to have the same effect as "sudo /etc/init.d/boinc-client 
> restart"
> as the first will not make the GPU available but the second will. I also
> get a different output. See below.
> 
> Do you have an explanation for this?
> 
>>  $ sudo service boinc-client restart
>>  [sudo] password for christian: 
>>  [ ok ] Stopping BOINC core client: boinc ... waiting ..
>>  [ ok ] Starting BOINC core client: boinc.
>>  [....] Setting up scheduling for BOINC core client and children: idle,chrt: 
> failed to set pid 5147's policy: Kein passender Prozess gefunden
>>  chrt: failed to set pid 5147's policy: Kein passender Prozess gefunden
>>  chrt: failed to set pid 5147's policy: Kein passender Prozess gefunden
>>   chrt failedCould not write to /proc/5147/oom_adj
>>  . ok
> 
>>  $ sudo /etc/init.d/boinc-client restart 
>>  [ ok ] Stopping BOINC core client: boinc ... waiting .
>>  [....] Starting BOINC core client: boincNo protocol specified
>>  xhost:  unable to open display ":0"
>>  [ ok  error ignored, GPU computing may not be possible.
>>  [ ok ] Setting up scheduling for BOINC core client and children: idle, 
> idleprio.
> 


Sorry for not being helpful, I read somewhere that init.d is deprecated and to use service instead, I don't know but somewhen the two behaviours diverged and they are not the same anymore.

Unfortunately I don't know the difference neither I have any clue to find the documentation I read a while ago.

Cheers,

G.


> Regards
> Christian
> 
> -- 
> pkg-boinc-devel mailing list
> pkg-boinc-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-boinc-devel
> 



More information about the pkg-boinc-devel mailing list