[quote]
start on mounted MOUNTPOINT=/sys and mounted MOUNTPOINT=/proc
[/quote]
A few months ago, I got a similar problem at work. I needed to make sure two filesystems were mounted, and I came to a solution like the one you're suggesting. And nope. It didn't work. cgroup-lite is in an endless loop right now :-)
So I tried to put some echoes on the job. And the problem is.... (are actually) tail and awk
awk is installed in /usr/bin/awk (which is a symlink to /etc/alternatives/akw, which is a symlink to /usr/bin/mawk). The same for tail.
The for loop (for c in `tail -n +2 /proc/cgroups | awk....) at the end of /bin/cgroup-mount is never executed.
I did a simple "cp /usr/bin/awk /bin/" and "cp /usr/bin/tail /bin/" and got cgroup-lite working.
Now I'm wondering two things:
1) how did you get this to work with a separated /usr
2) what others things are broken when /usr is on a separated partition.
Hello Serge,
[quote]
start on mounted MOUNTPOINT=/sys and mounted MOUNTPOINT=/proc
[/quote]
A few months ago, I got a similar problem at work. I needed to make sure two filesystems were mounted, and I came to a solution like the one you're suggesting. And nope. It didn't work. cgroup-lite is in an endless loop right now :-)
So I tried to put some echoes on the job. And the problem is.... (are actually) tail and awk
awk is installed in /usr/bin/awk (which is a symlink to /etc/alternativ es/akw, which is a symlink to /usr/bin/mawk). The same for tail.
The for loop (for c in `tail -n +2 /proc/cgroups | awk....) at the end of /bin/cgroup-mount is never executed.
I did a simple "cp /usr/bin/awk /bin/" and "cp /usr/bin/tail /bin/" and got cgroup-lite working.
Now I'm wondering two things:
1) how did you get this to work with a separated /usr
2) what others things are broken when /usr is on a separated partition.
Regards,
Norberto