Question

How to create a new "Log Command", a command to see my logs.

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!!

Subscribe
Share

What type of server are you running? In order to help you to optimize your game server configuration we need to know what game you’re hosting.

yes, exactly that ! Sorry for my bad english and thansk for helping !

To clarify, you would like to have a command that will let you view your three .bat files whenever you would like to, without a reboot? Right?

It’s a ragnarok server, there are 3 logs that i wanna see in this new commando. When i start my server, it open this:

*login-server.bat *char-server.bat *map-server.bat

I wanna see the executation of this 3 logs without needing of turn it off and then turn it on. Like, when i arrive home it’d already running and i need to show in my screen theses 3 logs, and i don’t wanna reboot it to see, cause plaers will be disconeted.

Got it?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.