Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Add a service for iscsid (open-iscsi)
@ 2022-11-30 19:30 thetredev
  2022-12-01 13:21 ` open-iscsi: Add a runit service (iscsid) kruceter
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: thetredev @ 2022-11-30 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

New issue by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861

Description:
When the `open-iscsi` package is installed on Arch Linux, a systemd service is created which essentially calls `/usr/bin/iscsid -f` when started:
```shell
$ cat /etc/systemd/system/multi-user.target.wants/iscsid.service
[Unit]
Description=Open-iSCSI
Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
DefaultDependencies=no
After=network-online.target iscsiuio.service iscsi-init.service
Before=remote-fs-pre.target
Wants=remote-fs-pre.target
Requires=iscsi-init.service

[Service]
Type=notify
NotifyAccess=main
ExecStart=/usr/bin/iscsid -f  <-----
KillMode=mixed
Restart=on-failure

[Install]
WantedBy=multi-user.target
Also=iscsid.socket
```

I wanted to run Void as a server for testing purposes and I need `iscsid` to run on there. I've created the following service file as a first:
```shell
$ cat /etc/sv/iscsid/run 
#!/bin/sh
[ -r conf ] && . ./conf
exec iscsid -f

$ sv status /var/service/iscsid
run: /var/service/iscsid: (pid 825) 311s
```

`iscsiuio` doesn't start for me for some reason, but `iscsid` is happy as far as I can tell. I'm quite sure that `iscsi-init.service` is NOT needed, since that only creates a `/etc/iscsi/initiatorname.iscsi` file which the XBPS package installation already does AFAIK.

My question/request: Do we need that service? If so, is my `/etc/sv/iscsid/run` enough? :)
Thank you!

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
@ 2022-12-01 13:21 ` kruceter
  2022-12-01 13:23 ` kruceter
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: kruceter @ 2022-12-01 13:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

New comment by kruceter on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1333763951

Comment:
systemd unit files are placed for reference purpose only.

> `iscsiuio` doesn't start for me for some reason

It has to be started separately as a separate service, according to `After=network-online.target iscsiuio.service iscsi-init.service` containing `iscsiuio.service`.

I do not know if iscsiuio has to be started before iscsid or not, though.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
  2022-12-01 13:21 ` open-iscsi: Add a runit service (iscsid) kruceter
@ 2022-12-01 13:23 ` kruceter
  2022-12-02 10:46 ` ahesford
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: kruceter @ 2022-12-01 13:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

New comment by kruceter on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1333763951

Comment:
systemd unit files are placed for reference purpose only.

> `iscsiuio` doesn't start for me for some reason

It has to be started as a separate service, according to `After=network-online.target iscsiuio.service iscsi-init.service` containing `iscsiuio.service`.

I do not know if iscsiuio has to be started before iscsid or not, though.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
  2022-12-01 13:21 ` open-iscsi: Add a runit service (iscsid) kruceter
  2022-12-01 13:23 ` kruceter
@ 2022-12-02 10:46 ` ahesford
  2022-12-02 11:25 ` thetredev
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ahesford @ 2022-12-02 10:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1335063736

Comment:
Your topic and issue description are asking two different things. It seems your primary goal is finding out if you've handled the daemon properly in your service. That question is probably better addressed on Reddit or some support forum for open-iscsi.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (2 preceding siblings ...)
  2022-12-02 10:46 ` ahesford
@ 2022-12-02 11:25 ` thetredev
  2023-03-03  2:20 ` github-actions
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2022-12-02 11:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1335104803

Comment:
Ummm no? I figured that no `iscsid` service comes with the XBPS package and I proposed a fix (which I'm not quite sure is enough).

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (3 preceding siblings ...)
  2022-12-02 11:25 ` thetredev
@ 2023-03-03  2:20 ` github-actions
  2023-03-03 20:42 ` thetredev
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2023-03-03  2:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1452856100

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (4 preceding siblings ...)
  2023-03-03  2:20 ` github-actions
@ 2023-03-03 20:42 ` thetredev
  2023-03-12 16:52 ` leahneukirchen
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2023-03-03 20:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1454102163

Comment:
bump :)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (5 preceding siblings ...)
  2023-03-03 20:42 ` thetredev
@ 2023-03-12 16:52 ` leahneukirchen
  2023-03-19 13:23 ` thetredev
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: leahneukirchen @ 2023-03-12 16:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1465246590

Comment:
sgtm, please make a PR.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (6 preceding siblings ...)
  2023-03-12 16:52 ` leahneukirchen
@ 2023-03-19 13:23 ` thetredev
  2023-03-19 15:23 ` leahneukirchen
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2023-03-19 13:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2029 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1475255237

Comment:
@leahneukirchen I'm having trouble installing the service via `vsv`. What I did:
```shell
$ cat srcpkgs/open-iscsi/files/iscsid/run
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec iscsid -f
```
```shell
$ stat -c '%a' srcpkgs/open-iscsi/files/iscsid/run
755
```
```shell
$ cat srcpkgs/open-iscsi/template
....
post_install() {
        vsv iscsid
}
....
```
```shell
$ ./xbps-src binary-bootstrap
$ ./xbps-src pkg open-iscsi > build.open-iscsi.log
```
[build.open-iscsi.log](https://github.com/void-linux/void-packages/files/11011132/build.open-iscsi.log)
```shell
$ sudo xbps-install --repository hostdir/binpkgs open-iscsi

Name       Action    Version           New version            Download size
libisns    install   -                 0.102_1                - 
open-iscsi install   -                 2.1.8_1                - 

Size required on disk:        2103KB
Space available on disk:       634GB

Do you want to continue? [Y/n] 

[*] Verifying package integrity
libisns-0.102_1: verifying RSA signature...
open-iscsi-2.1.8_1: verifying RSA signature...

[*] Collecting package files
libisns-0.102_1: collecting files...
open-iscsi-2.1.8_1: collecting files...

[*] Unpacking packages
libisns-0.102_1: unpacking ...
open-iscsi-2.1.8_1: unpacking ...
File `./etc/iscsi/initiatorname.iscsi' exists, installing configuration file to `./etc/iscsi/initiatorname.iscsi.new-2.1.8_1'.

[*] Configuring unpacked packages
libisns-0.102_1: configuring ...
libisns-0.102_1: installed successfully.
open-iscsi-2.1.8_1: configuring ...
open-iscsi-2.1.8_1: installed successfully.

0 downloaded, 2 installed, 0 updated, 2 configured, 0 removed.
```
```shell
$ ls /etc/sv/iscsid
ls: cannot access '/etc/sv/iscsid': No such file or directory
```
`vsv` doesn't install `iscsid` for some reason. Can you help me with this? Thanks!

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (7 preceding siblings ...)
  2023-03-19 13:23 ` thetredev
@ 2023-03-19 15:23 ` leahneukirchen
  2023-03-19 16:37 ` thetredev
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: leahneukirchen @ 2023-03-19 15:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1475292774

Comment:
works for me... but you want to add it to do_install here anyway.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (8 preceding siblings ...)
  2023-03-19 15:23 ` leahneukirchen
@ 2023-03-19 16:37 ` thetredev
  2023-06-18  2:07 ` github-actions
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2023-03-19 16:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1475314292

Comment:
Thanks I'll try that.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (9 preceding siblings ...)
  2023-03-19 16:37 ` thetredev
@ 2023-06-18  2:07 ` github-actions
  2023-06-18 14:20 ` thetredev
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2023-06-18  2:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1595925238

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (10 preceding siblings ...)
  2023-06-18  2:07 ` github-actions
@ 2023-06-18 14:20 ` thetredev
  2023-06-18 14:20 ` thetredev
  2023-07-20 14:41 ` [ISSUE] [CLOSED] " leahneukirchen
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2023-06-18 14:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1596166139

Comment:
bump

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (11 preceding siblings ...)
  2023-06-18 14:20 ` thetredev
@ 2023-06-18 14:20 ` thetredev
  2023-07-20 14:41 ` [ISSUE] [CLOSED] " leahneukirchen
  13 siblings, 0 replies; 15+ messages in thread
From: thetredev @ 2023-06-18 14:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

New comment by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861#issuecomment-1596166139

Comment:
bump

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ISSUE] [CLOSED] open-iscsi: Add a runit service (iscsid)
  2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
                   ` (12 preceding siblings ...)
  2023-06-18 14:20 ` thetredev
@ 2023-07-20 14:41 ` leahneukirchen
  13 siblings, 0 replies; 15+ messages in thread
From: leahneukirchen @ 2023-07-20 14:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

Closed issue by thetredev on void-packages repository

https://github.com/void-linux/void-packages/issues/40861

Description:
When the `open-iscsi` package is installed on Arch Linux, a systemd service is created which essentially calls `/usr/bin/iscsid -f` when started:
```shell
$ cat /etc/systemd/system/multi-user.target.wants/iscsid.service
[Unit]
Description=Open-iSCSI
Documentation=man:iscsid(8) man:iscsiuio(8) man:iscsiadm(8)
DefaultDependencies=no
After=network-online.target iscsiuio.service iscsi-init.service
Before=remote-fs-pre.target
Wants=remote-fs-pre.target
Requires=iscsi-init.service

[Service]
Type=notify
NotifyAccess=main
ExecStart=/usr/bin/iscsid -f  <-----
KillMode=mixed
Restart=on-failure

[Install]
WantedBy=multi-user.target
Also=iscsid.socket
```

I wanted to run Void as a server for testing purposes and I need `iscsid` to run on there. I've created the following service file as a first:
```shell
$ cat /etc/sv/iscsid/run 
#!/bin/sh
[ -r conf ] && . ./conf
exec iscsid -f

$ sv status /var/service/iscsid
run: /var/service/iscsid: (pid 825) 311s
```

`iscsiuio` doesn't start for me for some reason, but `iscsid` is happy as far as I can tell. I'm quite sure that `iscsi-init.service` is NOT needed, since that only creates a `/etc/iscsi/initiatorname.iscsi` file which either the XBPS package installation or `iscsid` already does (it was already present after I started `iscsid` manually when testing).

My question/request: Do we need that service? If so, is my `/etc/sv/iscsid/run` enough? :)
Thank you!

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-07-20 14:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 19:30 [ISSUE] Add a service for iscsid (open-iscsi) thetredev
2022-12-01 13:21 ` open-iscsi: Add a runit service (iscsid) kruceter
2022-12-01 13:23 ` kruceter
2022-12-02 10:46 ` ahesford
2022-12-02 11:25 ` thetredev
2023-03-03  2:20 ` github-actions
2023-03-03 20:42 ` thetredev
2023-03-12 16:52 ` leahneukirchen
2023-03-19 13:23 ` thetredev
2023-03-19 15:23 ` leahneukirchen
2023-03-19 16:37 ` thetredev
2023-06-18  2:07 ` github-actions
2023-06-18 14:20 ` thetredev
2023-06-18 14:20 ` thetredev
2023-07-20 14:41 ` [ISSUE] [CLOSED] " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).