[Mono-list] Init script with mono-service

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Wed Nov 19 11:45:46 UTC 2014

> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Stefano Facchetti - Arcoba Srl
> I developed a windows service and I'm trying to use it with mono-service
> command.
> Using command mono-service manually from the shell work well.
> I've created an init script (in attach) for automatically startup my

Much better to ignore deprecated init scripts...  Upstart was pretty effective at superseding init scripts, and then systemd superseded upstart.  It's better to figure out how to do it in systemd, but upstart is what I know, and upstart continues to be supported on all major linuxes.

cat > /etc/init/synctuary.conf << EOF
description     "Synctuary Server"
author          "Concept Blossom, Inc. <support at conceptblossom.com>"

# "started network" is rhel/centos terminology
# "net-device-up" is debian/ubuntu terminology
# By putting them both here, /etc/init/synctuary.conf can be identical, and compatible on either platform
start on runlevel [2345] and ( started network or net-device-up )
stop on runlevel [016]

exec /usr/bin/mono /usr/local/ConceptBlossom/SynctuaryServer/SynctuaryConsoleServer.exe

More information about the Mono-list mailing list