Ok, i've found solution.

/etc/systemd/system/@bareos-dir.service
contains line:
PIDFile=/var/lib/bareos/bareos-dir.9101.pid

While service creates pid file name based on DIR port = xxx configuration.
Just changed @bareos-dir.service manually and rebooted. Problem solved.

среда, 7 августа 2019 г., 0:20:32 UTC+3 пользователь Roman Starun написал:
>
>
> Installed fresh Ubuntu server 18.04 LTS and latest bareos build. 
> Everything is the same. Service status - stopped as soon as i change ports 
> in cfg and start/stop service.
>
> *bareos-director.service: Can't open PID file 
> /var/lib/bareos/bareos-dir.9101.pid (yet?) after start: No such file or dir*
>
>
> воскресенье, 4 августа 2019 г., 20:11:39 UTC+3 пользователь Spadajspadaj 
> написал:
>>
>> On 04.08.2019 10:18, Roman Starun wrote:} 
>> > But as soon as i change SDport to 8103, SD does not start. 
>> > Bareos ver 18.2.5, Centos 7. 
>>
>>
>> Since you're using CentOS, there is a big chance that you have SELinux 
>> enabled. So SELinux is preventing a bind to non-labeled port. You have 
>> to label port 8103 with bacula_port_t type. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/84c930be-f4ac-459d-a753-067a562ff320%40googlegroups.com.

Reply via email to