Run under daemontools?

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Run under daemontools?

Postby heddhunter » Thu Jun 25, 2009 5:13 am

Is it possible to get all input & output from PMS to go to stdin/stdout/stderr? (Right now it writes a lot of stuff to a debug.log file.) If so, it could run under daemontools/multilog which would take care of restarting the server automatically in the event of a crash, flexible automatic log rotation, etc. In other words, it would totally rock for running a headless server :)
heddhunter
 
Posts: 33
Joined: Thu Jun 04, 2009 7:10 am

Re: Run under daemontools?

Postby heddhunter » Fri Jul 31, 2009 9:59 pm

In case anybody cares, the following will work fine if you want to run PMS under daemontools.

Create /service/pms
Add a run script that looks like this (assuming your pms dir is in /usr/local)

#!/bin/sh
cd /usr/local/pms-linux-1.10.5
exec sh ./PMS.sh

chmod 755 run

that's it. i added a multilog directory just for the heck of it. it would be great if there was an option to feed debug.log into stdout or stderr so i could capture that with multilog. right now the debug.log file just grows without bound. being able to have it auto-rotate would be super.
heddhunter
 
Posts: 33
Joined: Thu Jun 04, 2009 7:10 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 2 guests