I am running program using runit to run at startup. I want all the output by from the program that is run by runit to be logged to a file.
I have looked at svlogd but I cannot figure out how to get it running.
I cannot figure out how to get it running.
In the daemontools family world, log services are just services like any other. So you run
svlogd with a
run program just like you would run a "main" service with a
The special things about "log" services are merely that:
Otherwise, they are just like everything else.
So make a "log" service to run
svlogd just like you would make any other service, put it into the right place relative to your "main" service, and set things off.