Adding pre-command to services #513
Replies: 2 comments 1 reply
-
|
While I understand that this could be convenient, we're currently in feature freeze (#509) and there are existing ways to achieve the same thing (pre- services, or execute the command via a script). |
Beta Was this translation helpful? Give feedback.
-
|
Upvoting this as quite an important feature. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using dinit for user services in sxmo.
I had to make a script to run
/usr/bin/rm -f $XDG_RUNTIME_DIR/bonsaibefore running the process #409.After I made a bunch of
pre-<service>s where the<service>hasto run
pkill <command>because sometimes after logging out the process was still there e.g. lisgd.Or dunst that it is started by something else causing dinit service to fail.
If it crashes or something dinit won't restart it as it is not under its supervision.
In the same way bonsaid could run
rmwith a pre-service.Instead a pre-command option in services can do that e.g.:
The
pre-commandexit status etc. won't be taken in account.Beta Was this translation helpful? Give feedback.
All reactions