Before - Tried to start and fail in a container
root@python-rtslib-fb-lp1865037-groovy:~# systemctl status target.service ● target.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/target.service; disabled; vendor preset: enabled) Active: inactive (dead) root@python-rtslib-fb-lp1865037-groovy:~# systemctl status rtslib-fb-targetctl ● rtslib-fb-targetctl.service - LSB: Start LIO targets Loaded: loaded (/etc/init.d/rtslib-fb-targetctl; generated) Active: active (exited) since Wed 2021-04-28 05:28:43 UTC; 45s ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 38268) Memory: 0B CGroup: /system.slice/rtslib-fb-targetctl.service
Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy systemd[1]: Starting LSB: Start LIO targets... Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy rtslib-fb-targetctl[710]: modprobe: FATAL: Module configfs not found in directory /lib/modules/5.4.0-72-generic Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy rtslib-fb-targetctl[704]: Could not load configfs module: exiting! Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy systemd[1]: Started LSB: Start LIO targets.
After: - proper service file (in case one wants to modify) - properly dtecting root@python-rtslib-fb-lp1865037-groovy:~# systemctl status target.service ● target.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/target.service; disabled; vendor preset: enabled) Active: inactive (dead) root@python-rtslib-fb-lp1865037-groovy:~# systemctl status rtslib-fb-targetctl ● rtslib-fb-targetctl.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/rtslib-fb-targetctl.service; enabled; vendor preset: enabled) Active: inactive (dead)
Apr 28 05:33:29 python-rtslib-fb-lp1865037-groovy systemd[1]: Condition check resulted in Restore LIO kernel target configuration being skipped.
=> verified
Before - Tried to start and fail in a container
root@python- rtslib- fb-lp1865037- groovy: ~# systemctl status target.service system/ target. service; disabled; vendor preset: enabled) rtslib- fb-lp1865037- groovy: ~# systemctl status rtslib-fb-targetctl fb-targetctl. service - LSB: Start LIO targets d/rtslib- fb-targetctl; generated) sysv-generator( 8) slice/rtslib- fb-targetctl. service
● target.service - Restore LIO kernel target configuration
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
root@python-
● rtslib-
Loaded: loaded (/etc/init.
Active: active (exited) since Wed 2021-04-28 05:28:43 UTC; 45s ago
Docs: man:systemd-
Tasks: 0 (limit: 38268)
Memory: 0B
CGroup: /system.
Apr 28 05:28:43 python- rtslib- fb-lp1865037- groovy systemd[1]: Starting LSB: Start LIO targets... rtslib- fb-lp1865037- groovy rtslib- fb-targetctl[ 710]: modprobe: FATAL: Module configfs not found in directory /lib/modules/ 5.4.0-72- generic rtslib- fb-lp1865037- groovy rtslib- fb-targetctl[ 704]: Could not load configfs module: exiting! rtslib- fb-lp1865037- groovy systemd[1]: Started LSB: Start LIO targets.
Apr 28 05:28:43 python-
Apr 28 05:28:43 python-
Apr 28 05:28:43 python-
After: rtslib- fb-lp1865037- groovy: ~# systemctl status target.service system/ target. service; disabled; vendor preset: enabled) rtslib- fb-lp1865037- groovy: ~# systemctl status rtslib-fb-targetctl fb-targetctl. service - Restore LIO kernel target configuration system/ rtslib- fb-targetctl. service; enabled; vendor preset: enabled)
- proper service file (in case one wants to modify)
- properly dtecting
root@python-
● target.service - Restore LIO kernel target configuration
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
root@python-
● rtslib-
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Apr 28 05:33:29 python- rtslib- fb-lp1865037- groovy systemd[1]: Condition check resulted in Restore LIO kernel target configuration being skipped.
=> verified