-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{PRE|POST}_{UP|DOWN}_COMMAND directives for single command execution #665
Comments
This is not possible with {PRE|POST}_{UP|DOWN}_SCRIPT variable as it contains a list of "schema:script". |
I think about such scheme: In case of some command duplication, e.g. Your opinion? |
A |
Ok, thanks for explanation! |
Hello!
Due to
man ifcfg
we havePRE_UP_SCRIPT, POST_UP_SCRIPT, PRE_DOWN_SCRIPT and POST_DOWN_SCRIPT
schemes to specify systemd-service, wicked-script and user-script on network interface up|down is. But there is no way to specify a single command execution explicitly (or I can't see it personally). In Debian-based distros there is the kiss-principalpre-up sleep 5
command in/etc/network/interfaces
, for example. Ok, inwicked
framework we can create something like#!/bin/bash sleep 5
script, put it in/some/directory/
and then call it by{PRE|POST}_{UP|DOWN}_SCRIPT="compat:suse:/some/directory"
, but this is rather long way, as for me.Can we have the simple
{PRE|POST}_{UP|DOWN}_COMMAND
directives for _single _command _execution (I've marked the baseline idea)?Syntax is similar to
{PRE|POST}_{UP|DOWN}_SCRIPT
, for example:{PRE|POST}_{UP|DOWN}_COMMAND="compat:suse:sleep 5"
In case if there are two or more commands to be executed -- welcome to
{PRE|POST}_{UP|DOWN}_SCRIPT
way.Thank you!
The text was updated successfully, but these errors were encountered: