Page 1 of 1

Linux Mint 17 startup script

Posted: Wed 09 Dec 2015 10:49 pm
by wmayfield
I am running CumulusMX on Linux Mint 17 and thought this might be of use to others. It should work on any Ubuntu-based system that is using the upstart init system.

CumulusMX is installed in /opt/CumulusMX

This is what I have in /etc/init/CumulusMX.conf -- it didn't work when I initially set it up but started up correctly once I rebooted. I don't know if the respawn functionality will work or not.

Code: Select all

# CumulusMX - CumulusMX job file

description "Runs CumulusMX weather station software"
author "Your Name Here"

# When to start the service
start on runlevel [2345]

# When to stop the service
stop on runlevel [016]

# Automatically restart if crashed
respawn

# Let upstart know this will detatch to background
#expect fork

# Set directory
chdir /opt/CumulusMX

# Run process
exec mono CumulusMX.exe -port 9999

Re: Linux Mint 17 startup script

Posted: Thu 10 Dec 2015 1:46 pm
by wmayfield
Also the messages from CumulusMX will be in /var/log/upstart/CumulusMX.log