Sparrow6.git | examples/dsl/active/systemd/ | sparrowfile
#!raku
if os() ~~ / ubuntu | debian / {
package-install 'carton';
} else {
say "skip this test for os #{os()}";
exit;
}
user "foo";
systemd-service "long-dream", %(
user => "foo",
workdir => "/home/foo",
command => "/bin/bash -c 'sleep 8'"
);
service-restart "long-dream";
bash "ps uax |grep sleep | grep -v grep";