> From: [email protected] [mailto:mono-list-
> [email protected]] 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. <[email protected]>"

# "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
EOF
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to