2020-09-05 15:25:05 +00:00
|
|
|
[Unit]
|
|
|
|
Description=RaSCSI service
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
2021-09-19 22:57:28 +00:00
|
|
|
ExecStart=/usr/local/bin/rascsi -r 7
|
2021-09-24 20:01:48 +00:00
|
|
|
# Example 1: If you want to automatically attach a hard disk at startup,
|
|
|
|
# say an image called harddisk.hds on SCSI ID 1, change the ExecStart line to:
|
2021-09-24 20:06:26 +00:00
|
|
|
#
|
2021-09-24 20:05:21 +00:00
|
|
|
# ExecStart=/usr/local/bin/rascsi -ID1 /home/pi/images/harddisk.hds
|
2021-09-24 20:01:48 +00:00
|
|
|
#
|
|
|
|
# Example 2: If you want to reserve SCSI IDs to prevent usage, add '-r' followed by
|
|
|
|
# comma-separated SCSI ID numbers; for instance IDs 0 and 7:
|
|
|
|
#
|
|
|
|
# ExecStart=/usr/local/bin/rascsi -r 0,7
|
|
|
|
#
|
2021-02-07 19:00:48 +00:00
|
|
|
# This functionality isn't implmented yet: ExecStop=/usr/local/bin/rasctl -stop
|
2020-09-05 15:25:05 +00:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=RASCSI
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|