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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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.