Automatic Manager launch as a server on Ubuntu 14.04 and higher

I created small startup script for launch Manager as a service on boot time. It uses Upstart system, which is available by default.

create file /etc/init/manager.conf

description     "Manager.IO launch"

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

#task

script
        exec sudo /usr/bin/mono /home/username/ManagerServer.exe -port 80
end script

This allows you to start server by command

 start manager

and to stop with

 stop manager

Also manager will start after system boot. In my case ManagerServer was extracted to home directory of “username”.

3 Likes