Charm Needed: Terraria server

Bug #977552 reported by Jorge Castro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
Expired
Undecided
Unassigned

Bug Description

Tags: new-charm
Jorge Castro (jorge)
Changed in charms:
status: New → Confirmed
Jorge Castro (jorge)
Changed in charms:
assignee: nobody → Charles Butler (h5-chuck-9o)
tags: added: new-charm
Revision history for this message
Charles Butler (lazypower) wrote :

I've recently updated the charm, and its been tested with an EC2 configuration setup. I can confirm i have the installation and startup scripts working as intended.

James Page (james-page)
Changed in charms:
assignee: Charles Butler (h5-chuck-9o) → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :

Hi Chuck

I've taken a run through your charm - here is some feedback:

1) copyright is empty

2) README.markdown

It would be nice if the README had more information about how to use the charm - makes it easier for luddites like me who know nothing about what this charm does to use it!

3) hooks/install

Just in case this hook gets run more than once you should also scrub /opt/terraria otherwise the hook will fail to work properly on second execution (for example if a service unit gets recycled).

Ideally you should also verify the download from github.com using a checksum - I know that this is not possible using tags but it right be possible with straight downloads.

4) hooks/start

OK - this is where I hit a bit of a blocker.

i) You need to specify #!/bin/bash at the top of this script - otherwise it won't execute.

ii) mono /opt/terraria/TerrariaServer.exe -port 7777 -maxplayers 16 -autocreate 2 -w "/opt/terraria/juju-world.wld"

This command has a few issues

a) Its interactive - so it will just sit there waiting for user input which won't happen

b) It never completes - so the hook won't complete and the charm status won't move to 'started'

c) It runs as root

Ideally your charm should set everything up and then run the server as a daemon process using a non-root user for extra security - however I don't know /opt/terraria/TerrariaServer.exe so this might not be possible.

5) hooks/stop - missing

Bearing in mind 4) this might not make a great charm unless you can make all the required actions happen without user-interaction. If you can providing some configuration options for users of the charm would be useful as well.

Cheers

James

Changed in charms:
assignee: James Page (james-page) → nobody
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Juju Charms Collection because there has been no activity for 60 days.]

Changed in charms:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.