2020-09-05 15:25:05 +00:00
|
|
|
[Unit]
|
2022-12-05 17:58:23 +00:00
|
|
|
Description=PiSCSI service
|
2020-09-05 15:25:05 +00:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
2022-12-05 17:58:23 +00:00
|
|
|
ExecStart=/usr/local/bin/piscsi -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
|
|
|
#
|
2022-12-05 17:58:23 +00:00
|
|
|
# ExecStart=/usr/local/bin/piscsi -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:
|
|
|
|
#
|
2022-12-05 17:58:23 +00:00
|
|
|
# ExecStart=/usr/local/bin/piscsi -r 0,7
|
2021-09-24 20:01:48 +00:00
|
|
|
#
|
2022-12-05 17:58:23 +00:00
|
|
|
ExecStop=/usr/local/bin/scsictl -X
|
|
|
|
SyslogIdentifier=PISCSI
|
2020-09-05 15:25:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|