Forum: CFEngine Help Subject: Editing a running a command Author: Koriv Link to topic: https://cfengine.com/forum/read.php?3,22722,22722#msg-22722
I am getting started with cfengine2 recently and now, I am starting to have some troubles with some tasks. The point is, I need to edit a file "/etc/sysctl.conf" (appending some lines only if they don't exist previously) and run a command "sysctl -p" (only if the file is edited). So I proceed creating an editfile for "A", so I can append the lines with a "AppendIfNoSuchLine" for every line. But, how can I run "sysctl -p" command only if, prevously, cfegine have edited the required file? PD: sorry for my english but I am not a native english speaker. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine