----------------------------------------------------------------------------------------------
ReadMe (user documentation) file for scripts, which provide auto launching of
the sm_file_send_clns and sm_file_send_srvs daemons
on openSUSE-based Linux Distros.
---------------------------
This directory contains follow directories and files:
- init.d/
sm_file_exchanger;
- systemd/
sm_file_exchanger.links.tar.gz;
- sm_file_exchanger.sh;
.
This directory contains follow files:
- sm_file_exchanger;
- sm_file_exchanger.sh;
- sm_file_exchanger.service;
.
sm_file_exchanger
sm_file_exchanger.sh
---------------------------
Files:
- sm_file_exchanger
- the script, which allow to start/stop/restart
the sm_file_send_clns and sm_file_send_srvs daemons,
using the current user as owner of the daemon processes;
Usage:
sm_file_exchanger {start|stop|restart}
.
This file should be copied in directory:
/etc/init.d/
, also owner/group/attributes should be changed to root/root/rwxr-xr--
.
- sm_file_exchanger.sh
- the scripts, which allow to start/stop/restart
the sm_file_send_clns and sm_file_send_srvs daemons,
using the some defined user as owner of the daemon processes;
this script can be used for the control of the sm_file_send_clns
and sm_file_send_srvs daemons in the command line;
Usage:
sm_file_exchanger.sh {start|stop|restart}
.
User can define user name, who will be owner of processes sm_file_send_clns and sm_file_send_srvs
after launch of the OS. If it's necessary, root can be defined as owner of processes
sm_file_send_clns and sm_file_send_srvs.
Status of sm_file_exchanger service can be obtained, using command:
/sbin/service sm_file_exchanger status
.
$FE_HOME
---------------------------
A user should define variable $FE_HOME in files:
- sm_file_exchanger
- sm_file_exchanger.sh
.
By default:
FE_HOME="/home/sman/bin/file_exchanger-0.0.11.11-Linux-x64"";
$FE_HOME should contain the Home Directory path of
the File Exchanger (file_exchanger) Tool.
$FE_USER
---------------------------
A user should define variable $FE_USER in files:
- sm_file_exchanger
- sm_file_exchanger.sh
.
By default:
FE_USER="sman";
$FE_USER should contain User Name of user owner of the
sm_file_send_clns and sm_file_send_srvs daemons.
NOTE: If a user changes $FE_USER value, and launches daemons with
different permissions, he should care about access permissions to directories:
/var/log/smansoft
/var/lib/smansoft
and all their subdirectories and files.
I.e. daemons sm_file_send_clns and sm_file_send_srvs should have access to these
directories and files before their launch.
sm_file_exchanger.service
---------------------------
The file:
- sm_file_exchanger.service
should be copied to /usr/lib/systemd/system directory.
After that, user should use
YaST2
for tuning of sm_file_exchanger.service.
The file sm_file_exchanger.service defines control of
sm_file_send_clns and sm_file_send_srvs daemons using:
/etc/init.d/sm_file_exchanger start
/etc/init.d/sm_file_exchanger stop
/etc/init.d/sm_file_exchanger restart
.
-----------------------------------------------------------------------------------------------
End of the document
-----------------
Copyright (C) 2020 SManSoft
Sergey Manoylo