uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

s2p: Persist (memorize) the current setup in /etc/s2p.conf #86

Closed uweseimet closed 5 months ago

uweseimet commented 5 months ago

s2p shall support memorizing the current setup. On a user request (new remote interface operation) s2p shall save all current properties to the default configuration file /etc/s2p.conf. This means that after the next reboot, in particular when running s2p as a system service, s2p will automatically launch with the saved setup.

This feature makes creating/changing a configuration very simple. The user does not have to edit any files, but can conveniently configure all settings (e.g. attached devices) with any of the available means (s2p, s2pctl, SCSI Control app, PiSCSI web interface). When everything has been set up as desired it can simply be saved to /etc/s2p.conf with s2pctl or the SCSI Control app.

Before overwriting /etc/s2p.conf a backup file /etc/s2p.conf.old shall be created.