By danielperez
Hey,
I’ve searched and i didn’t finf anything in support area. I’d like to creat a new command to see my server logs like “sv getlog”. To be more clear, i have a command “sv start” to start my emulator, and “sv shut” to turn it off. When i start it with sv start, it loads the server and show me all the logs, when players login, do anything i see there… So imagine that have just turned on my computer and the server ir online, the only way i have to see my logs is turning it of and then turn ir on. But i don’t wanna turn it off then on to see my logs, cause players must wait it to load emulator and turn on, got it? I just wanna creat a new command to get my logs in real time with no needing of turn my server off then on, know hwat mean ? Sorry for my bad english and thanks for help!!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
sv does have a status option that should give you what you want.
viewing the man page at: http://smarden.org/runit/sv.8.html shows this option.
status Report the current status of the service, and the appendant log service if available, to standard output.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.