Please first start assembling a configuration file (srcpd.conf) fitting exactly your needs to connect to
your model railway controller interface. Save this file to the directory for host specific system
configuration (/etc). The default configuration file delivered with this software must be replaced by the
new one.
As soon as the adapted configuration file is at the right place, the daemon can be started using this
command:
/etc/init.d/srcpd start
If the srcpd is already running, the daemon first must be stopped to get it aware of the new setup.
Stopping the daemon is executed in analogy to the start command:
/etc/init.d/srcpd stop
Under certain conditions it is also possible to get the daemon re-read its configuration file without
stopping it. With respect to hardware access rules under UNIXlike systems, the group and/or user rights
must be properly set in srcpd.conf to let the daemon access the appropriate hardware resources at any
time.
Common model railway interfaces will require access rights for serial lines (RS232, USB), which can be
achieved using the proper group rights (e.g. dialout). The ddl-s88 module uses a special system function
(ioperm) which always needs root rights to perform successfully. The ioperm() function is typically only
available on x86 and x86-64 hardware. So if you are using other hardware and get an error about missing
sys/io.h while compiling srcpd source code, just disable the ddl-s88 module. Refer to ./configure --help
for more details about how to disable special srcpd modules.
To let srcpd re-read its configuration file, assumed the setup mentioned before is correct, the following
command can be used:
/etc/init.d/srcpd reload
The log file /var/log/messages or /var/log/syslog of the syslog daemon can be used to monitor occurring
errors on daemon start or during current operation. With root rights the upcoming messages can be
continuously watched in a separate terminal:
tail -f /var/log/messages
or
tail -f /var/log/syslog
The verbosity of these messages can be adjusted using the configuration file srcpd.conf. For more
information refer to the adequate man page.