Creating an Upstart Service

2 posts / 0 new
Last post
#1 Fri, 03/08/2013 - 11:03
glimmung

Creating an Upstart Service

Hi,

I'm setting up a new server, but am baffled by how to set up an upstart service for an old version of Plone.

Newer versions of Plone use bin/plonectl stop|start, IOW a single command with a stop or start parameter, and adding the command into the "Server program and parameters" field makes sense.

However, Plone 2.5.5 (required for some legacy hosting) uses bin/startcluster.sh and bin/shutowncluster.sh to stop an start respectively - IOW, there are two disticnt commands.

Looking at those scripts, each contains the 3 "start" (or "stop") commands for the three elements of the zeocluster, so I guess I could create my own startup script with a start/stop, but would rather use those provided i possible.

How should I configure Upsatrt in Virtualmin to start and stop this version of Plone?

Edit: Looking at another server and a later version of Plone with both scrips availabel, I see:

plone405

#

Plone 4.0.5

description "Plone 4.0.5"

start on runlevel [2345] stop on runlevel [!2345]

expect fork

exec /opt/Plone-4.0.5/zeocluster/bin/startcluster.sh

...which suggests that upstart only needs the startcluster.sh script, but I'm concerned that it won't know how to shut the cluster down cleanly.

--

Cheers,

PhilK

Fri, 03/08/2013 - 12:02
tpnsolutions
tpnsolutions's picture

Hi,

Check out Webmin > System > Bootup and Shutdown area. In there you can "Create a new bootup and shutdown action".

Let us know if this works, and/or if you require further assistance.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked