post-start commands are not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I have the following scenario:
1) tgtd starts up and notifies systemd via sd_notify before entering its event loop;
https:/
tgtd:
command: usr/sbin/tgtd -f
stop-command: bin/tgtd-stop
daemon: notify
----
Status: "Starting event loop..."
Tasks: 1 (limit: 7372)
CGroup: /system.
└─22652 /snap/microstac
2) tgtd does not automatically read config files - there is no option to do this upstream;
http://
3) after tgtd starts, `tgt-admin -e -c $SNAP_COMMON/
For this to work, I need to execute a post-start command similar to how it is done in the Ubuntu distribution packaging:
https:/
ExecStartPost=
A systemd doc reference: https:/
Alternatively, a separate service like this could be used with the PartOf stanza (https:/
tgtd-
command: usr/sbin/tgt-admin -e -c $SNAP_COMMON/
daemon: oneshot
after:
- tgtd
However, it is not supported in snapd either.
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |