Starting in YumaPro 17.10 users have the option to use the Filesystem Hierarchy Standard (FHS)
directory locations to create and store server data, rather than the default YumaPro locations. This
flexibility is achieved with the new fileloc-fhs configuration parameter.
The fileloc-fhs parameter must be set to true in order to use the YumaPro restconf program on an SELinux
system (Redhat, CentOS, Fedora). You will need to run the server with the proper permissions (root)
when setting fileloc-fhs to true. For more information on setting up the restconf program on your SELinux
system please refer to the RESTCONF Installation Section of the YumaPro Installation Guide.
--fileloc-fhs=boolean
If true, then the server should use Filesystem Hierarchy Standard (FHS)
directory locations to create and store server data. May need to run as root.
The FHS server log file will be created by default unless the
'log' parameter is used, then that location will be used
instead.
The FHS audit log file will be created by default unless the
'audit-log' parameter is used, then that location will be used
instead. If the 'no-audit-log' parameter is present then no
audit log will be created.
File Type Example
----------------------------------------------------
server log: /var/log/netconfd-pro/server.log
audit log: /var/log/netconfd-pro/audit.log
config file: /var/lib/netconfd-pro/startup-cfg.xml
TXID file: /var/lib/netconfd-pro/startup-cfg-txid.txt
backups: /var/lib/netconfd-pro/backups/backup1.xml
PID file: /var/run/netconfd-pro/netconfd-pro.pid
AF socket: /var/run/netconfd-pro/ncxserver.sock
If false then the server will use $HOME/.yumapro and other
file locations to store server data.
File Type Example
----------------------------------------------------
server log: STDOUT; no server log created by default
audit log: STDOUT; no audit log created by default
config file: $HOME/.yumapro/startup-cfg.xml
TXID file: $HOME/.yumapro/startup-cfg-txid.txt
backups: $HOME/.yumapro/backups/backup1.xml
PID file: $HOME/.yumapro/netconfd-pro.pid
AF socket: /tmp/ncxserver.sock
The fileloc-fhs parameter can be set via the command line when starting netconfd-pro:
user@system> sudo netconfd-pro --fileloc-fhs=true
or can be configured in the /etc/yumapro/netconfd-pro.conf file:
#### leaf fileloc-fhs # # If true, then the server should use Filesystem # Hierarchy Standard (FHS) directory locations to create # and store server data. May need to run as root. # If false then the server will use $HOME/.yumapro and # other file locations to store server data. # # fileloc-fhs false # fileloc-fhs true